title: How to retrieve objects values stored in a Java ArrayList
body: <pre><code>ArrayList&lt;yellowPage&gt; ob1 = new ArrayList&lt;yellowPage&gt;(); 
  yellowPage thing = new yellowPage(100,100);
  thing.calc(i,y,s3); 
  ob1.add(thing);
  </code></pre>
  
  <p>I stored some data in <code>thing</code>. How can I retrieve the value stored in <code>ob1.thing</code>?</p>