title: How to do a Collection of integer pairs?
body: <p>How to do this with collection support? I tried <code>HashMap</code> but it is not suitable. I need to get in a result for example: {(1,0),(1,2),(3,5)}  </p>
  
  <pre><code>ArrayList&lt;int[][]&gt; list = new ArrayList&lt;int[][]&gt;();
  for (int j = 0; j &lt; count; j++) {
  int[][] pair = new int[1][1];
      pair[0][0] = (Integer) key;
      pair[0][1] = (Integer) value;
      list.add(pair);
  }
  </code></pre>