title: How to extract data from object?
body: <pre><code>[56, SensIOP, 9, Open Point] - Index 0
  [562, SensIOP, 92, Open Point2] - Index 1
  </code></pre>
  
  <p>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.</p>
  
  <p>Update :</p>
  
  <pre><code> Object object = (Object) iterator.next(); 
  </code></pre>
  
  <p>This object has the value set one (Index 0 )(It's in for loop)</p>
  
  <p>Update 2 :</p>
  
  <pre><code>  for (Iterator iterator = List2.iterator(); iterator.hasNext();) {
          Object object = (Object) iterator.next();
  </code></pre>