title: how to access columns of 2D array
body: <p>how to access specific columns of a 2D array.The array stores the values from a stored procedure.My code for getting the data from stored procedure is</p>
  
  <pre><code>public String[][] getDbTable()
          {
  
              int i = 0;
              String a[][] = new String[3600][16];
  
  
  
              try
              {
                   con = getConnection();
  
  
                   String sql = "exec vcs_gauge @gauge_name=?,@first_rec_time=?,@last_rec_time=?";
                  DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                   System.out.println("date is "+df.format(currentDate));
                   clstmt = con.prepareCall(sql); 
                   clstmt.setString(1,"vs1_bag");
  
  
                  clstmt.setString(2, "2014-09-01 10:00:00");
                  clstmt.setString(3, "2014-09-01 11:00:00");
  
                    clstmt.execute();
                    rs = clstmt.getResultSet();
  
  
                  while (rs.next())
                  {
                      for(int j=0; j&lt;16; j++)
                      {
                              a[i][j] = rs.getString(j+1);
  
                      }
  
                      i++;
                  }
  
              }
  
              catch( Exception e )
              {
                  System.out.println("\nException in Display Bean in getDbTable(String code):"+e);
              }
              finally
              {
  
                  //closeConnection();
              }
              return a; 
          }
  </code></pre>
  
  <p>after running this code my table is shown which contains all the columns.My problem is how to access some columns of the retrieved table.</p>