```
[56, SensIOP, 9, Open Point] - Index 0
[562, SensIOP, 92, Open Point2] - Index 1

```

This is my object I am getting from the database call.I am iterating over the list to get this ,now my question here is 1st and 3rd field are long and others are string , how can I extract this from the object , to assign it to some variable.

Update :

```
 Object object = (Object) iterator.next(); 

```

This object has the value set one (Index 0 )(It's in for loop)

Update 2 :

```
  for (Iterator iterator = List2.iterator(); iterator.hasNext();) {
        Object object = (Object) iterator.next();

```