How to convert LinkedHashSet to two-dimensional array
<p>I want to convert a LinkedHashSet into 2D Integer array.</p>

<p><code>LinkedHashSet</code> is constructed from already available 2D Integer <code>array[n][3]</code> using <code>Set</code> and  <code>Arrays.asList()</code>, removed duplicates.  </p>

<p>Now, if e.g. <code>[ [10, 14, -99], [10, 99, -14], [14, 99, -10] [null] ]</code> is a LinkedHashSet</p>

<p>I want</p>

<pre><code>first[n][2]={ {10, 14}, {10, 99}, {14, 99}}
</code></pre>

<p>or</p>

<pre><code>second[n][1]={ {-99}, {-14}, {-10} }
</code></pre>

<p>i.e. break <code>LinkedHashSet</code> (in which every node contains 3 integers as info field) into  two integer array  of size <code>[n][2]</code> and <code>[n][1]</code> as explained in above example.</p>

<p>I want an efficient and simple way to do this in java.</p>
