title: how to create a Java List of two integers
body: <p>Hello I am new to java and I am trying to create a list like</p>
  
  <pre><code>List&lt;Int, Int&gt; list = new List&lt;Int, Int&gt;();
  </code></pre>
  
  <p>the first int is the value and the second int is the finished time. I want to be able to read from a file and save in my list, So can I later get the finished time or value list in a sorted way. I am going to ue these two list together so when the first one is sorted the second one also needs to be sorted accordingly. </p>
  
  <p>If I use <code>HashMap</code> I cant add duplicate values, can someone help me please?
  I tried with <code>TreeMap</code> but it also didnt work.</p>