private int getColIndex ( String name ) { for ( int i = 0 ; i < columns . length ; i ++ ) { if ( name . equals ( columns [ i ] ) ) { return i ; } // end of if (name.equals(columns[i])) } // end of for (int i=0; i<columns.length; i++) return - 1 ; }
answer the index of the column named name in the actual table