how to print set of sets in java?
<pre><code>HashSet&lt;Set&lt;Set&lt;int[]&gt;&gt;&gt; Sa=new HashSet&lt;Set&lt;Set&lt;int[]&gt;&gt;&gt;();
</code></pre>

<p>Now, i need to print Sa.using single iterator I am not able to print</p>

<pre><code>Iterator&lt;Set&lt;Set&lt;int[]&gt;&gt;&gt; iter = Sa.iterator();
while (iter.hasNext()) {
    System.out.println(iter.next());
}
</code></pre>

<p>this isn't working</p>