java-construct Set from 2D Integer array and back Set to 2D Integer array
<p>I have converted 2D Integer array[n][3] into LinkedHashSet (for removing duplicates in row) using following code.</p>

<pre><code>  final Set&lt;Set&lt;Integer&gt;&gt; r = new LinkedHashSet&lt;Set&lt;Integer&gt;&gt;();
  for(Integer[] row:orderedpair3k) 
  r.add(new LinkedHashSet&lt;Integer&gt;(Arrays.asList(row)));
</code></pre>

<p>How do I convert this back to a 2D array?</p>
