Retrive just one array
<p>I have the following method </p>

<pre><code>  public Object[] loopthroughTables(){
       Object[] tables  = new Object[1]; 
       tables[0] = tableR;
       tables[1] = tableB15;
      return tables;  
    }
</code></pre>

<p>I want to retrieve just tableR from my calling method</p>

<pre><code>loopthroughTables();
</code></pre>

<p>my current setup is </p>

<pre><code>Object[][] data = getTableData(tableR); //create an array of the table data
</code></pre>

<p>but i want to do something like </p>

<pre><code>Object[][] data = getTableData(loopthroughTables()); //create an array of the table data
</code></pre>

<p>How do i do this?</p>