Cloning objects of inner classes
<p>I have written a class A such as following</p>

<pre><code>class A &lt;E&gt; {  // class A has objects of E

    int x;

    private B&lt;T&gt; next // a object of inner class

    class B&lt;T&gt; { 
        // an inner class having objects of type T

        T[] elements = (T[]) Object[x];
        // has other stuff including many objects  
    }

 public A&lt;E&gt; func ( B&lt;E&gt; val ){
  Here I want to clone the value of val so that I can do different operations on other   
 }
</code></pre>

<p>The problem comes that I wish to write <code>B&lt;E&gt; Temp = B&lt;E&gt;Value.clone()</code> where Value is defined in the code.</p>

<p>but it says that clone is not visible.</p>

<p>What should I do to make it so....</p>

<p>Thanks a lot...</p>
