title: how to access one by on value of the stored procedure and calculate the average of them row wise
body: <p>I executed a stored procedure in java which results into a table of 16 column and 3600 rows.Now I want to access 3 column of the retrieved table in row by row fashion and calculate the average of all column in row wise fashion.To do this,I need to access values of columns one by one .How to do it. My code for accessing column is</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>while (rs.next())
       {
        a1=rs.getDouble(7);
        a2=rs.getDouble(8);
        a3=rs.getDouble(10);
         sum +=(a1+a2+a3);
      
       }
   return sum/3;</code></pre>
  </div>
  </div>
  </p>
  
  <p>but through this,i think i'am getting a total average of all the columns .But i need average of column row by row i.e average of all three column of first row,then second row ...like this.</p>