<p>I have a ArrayList made up of different elements imported from a db, made up of strings, numbers, doubles and ints. Is there a way to use a reflection type technique to find out what each type of data each element holds?  </p>

<p>FYI: The reason that there is so many types of data is that this is a piece of java code being written to be implemented with different DB's.</p>

Just call
```
.getClass()
```
on each
```
Object
```
in a loop.
Unfortunately, Java doesn't have
```
map()
```
. :)