save get values using arrayList java
<p>In my example, I try to get val(0) and val(1) each time.<br>
After <code>for</code> loop I need to save my values to use them for other calculations:</p>

<pre><code>  String[] columns = { "col1" , "col2" }; 
  String[] y = { "TEST", "BUG" ,"ENH" }; 
   List&lt;int[]&gt; values = new ArrayList&lt;int[]&gt;(); 
   for (int j = 0; j &lt; y.length; j++) { 
      // do some actions 
     for(int[] v : values) { 
      //v is the array for one iteration, use it like this: 
       int col1 = v[0]; 
       int col2 = v[1]; 
        values .add(v);
}
}

System.out.prinln(values) =&gt;gives : []
</code></pre>

<p>Out of <code>for</code> loop, my values are raised, how do can I do to get my values after <code>for</code>?<br>
Thanks</p>
