java : get values from matrix
<p>for each time I do an action on y , get values 0 and 1 from table.</p>

<pre><code>String[][] columns = {{"col1" , "col2"}};
int[] values = new int[columns.length];
String[] y = { "TEST", "BUG" };

    for (int j = 0; j &lt; y.length; j++)
    {
      //do some actions
      //bellow I need to get at the same time col1 and col2      
      table.getVal(0, columns [0][j])) ?
    }
</code></pre>

<p>I need to get value of col1, col2 on y1 and on y2 ? how could I use columns in the getVal to have the expected values ?</p>

<p>thanks,</p>
