title: java collection with multiple key and multiple row
body: <p>Please suggest an idea in collection to get array like this:</p>
  
  <pre><code>{ 
      {id=&gt;1, name=&gt;"aa"},
      {id=&gt;2, name=&gt;"bb"},
      {id=&gt;3, name=&gt;"cc"}
  }
  </code></pre>
  
  <p>If I iterate through the array, the first time I give id means it should give 1 and the second time 2 should come.</p>