title: for (Object object : list) [java] and index element
body: <p>Is there a way to get an element id of a list to get it later through <code>list.get(index)</code></p>
  
  <p>when using </p>
  
  <pre><code>for(Object obj: o)
  </code></pre>
  
  <p>construction</p>
  
  <p>Only define a local var and manually incrementing it?
  Anything simpler?</p>