title: how to print array of the array list
body: <pre><code>I have 2 -d array p[i][j] by using 
  
      for (int jj=0; jj &lt; N;jj++){
  
              My_0[jj] = p[0][jj]; 
              My_1[jj] = p[1][jj];
              My_2[jj] = p[2][jj]; 
              My_3[jj] = p[3][jj]; 
              My_4[jj] = p[4][jj];
              My_5[jj] = p[5][jj]; 
              My_6[jj] = p[6][jj]; 
              My_7[jj] = p[7][jj];
              My_8[jj] = p[8][jj];
              My_9[jj] = p[9][jj]; 
  
      }
  I extracted rows from p and inserted into My_0 to My_9 one by one,,,then I inserted each My_0 to My_9 into a arraylist class object 
  
      List&lt;AA&gt; part = new ArrayList&lt;AA&gt;();
      AA newP = new AA(); 
  
      // using
      newP.setO(My_0);
      newP.setO(My_1);
      newP.setO(My_2);
      newP.setO(My_3);
      newP.setO(My_4);
      newP.setO(My_5);
      newP.setO(My_6);
      newP.setO(My_7);
      newP.setO(My_8);
      newP.setO(My_9);
  
      part.add(newP);
      // then print this array list using
  
      System.out.println("Size === "+ part.size());
      for (int j1=0; j1 &lt; part.size();j1++) {
          System.out.println("" + Arrays.toString((part).get(j1).getO()));
      }
  </code></pre>
  
  <p>but the problem is it is only printing the My_9 array upto part.size().what should i do to print all My_0 to My_9. </p>
  
  <pre><code>           newP0.setO(My_0);
             newP1.setO(My_1); //like this done for every My_0 to My_9
             part.add(newP0);
             part.add(newP1); //like this done for every My_0 to My_9
  
           System.out.println("Size === "+ part.size());
            for (int j1=0; j1 &lt; part.size();j1++){
            System.out.println("" + Arrays.toString((part).get(j1).getO()));
  </code></pre>
  
  <p>and i'm using the above code for printing part it will print size=100 and print My_0 to My_9 values 10 times,is it correct or code is going wrong while printing,,i think it should only print My_0 to My_9 values one time only </p>