title: Java List with each element having 2 values
body: <p>I have a requirement to have a list, where each element must have 2 values.
  I want to know what would be the best way to implement it.
  Should I use <code>HashSet</code>, <code>HashMap</code> or anything else ?</p>
  
  <p>The list should look like this - </p>
  
  <p><code>&lt;Elem1_val1, Elem1_val2&gt;, &lt;Elem2_val1, Elem2_val2&gt;, &lt;Elem3_val1, Elem3_val2&gt;,  ....
  &lt;Elemn_val1, Elemn_val2&gt;,</code></p>
  
  <p>The important point here is that val1 and val2 belong to same Element.
  What would be a good way to implement this?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <ol>
  <li>Can anyone comment about implementing - <code>List&lt;Map.Entry&lt;ClassA, ClassB&gt;&gt;</code></li>
  <li>I don't want to have new class, because I just want to store 2 objects which have 
  some co-relation together in one list.</li>
  </ol>
  
  <p>Thanks !</p>