title: Retrieving second and third column from a 2d array to an array
body: <p>I have a Java code that will output 3 column of double integer just like this (1 column, 2 column, 3 column):</p>
  
  <pre><code>( 0.09,  0.27,  0.01) 
  ( 0.00, -0.00,  0.26)  
  ( 0.02, -0.02,  0.24) 
  ( 0.22, -0.11, -0.03) 
  </code></pre>
  
  <p>Now, I wish to store all the values from the second column into an array and the values from the third column into another array. Is there a way I could modify it so that it will achieve that? </p>
  
  <p>This is my partial code:</p>
  
  <pre><code>for (int i = 0; i &lt; termVectors.length; ++i) {
      System.out.print("(");
      for (int k = 0; k &lt; 3; ++k) {
      if (k &gt; 0) System.out.print(", ");
      System.out.printf("% 5.2f",termVectors[i][k]);
      }
      System.out.print(")  ");
  }
  </code></pre>
  
  <p>Thanks!</p>