public final List<String> executeStringListQuery(String sql) throws AdeException {
  final List<String[]> temp=executeStringListQuery2d(sql);
  final List<String> res=new ArrayList<String>(temp.size());
  for (int i=0; i < temp.size(); ++i) {
    final String[] row=temp.get(i);
    if (row.length != 1) {
      throw new AdeInternalException("Row " + (i + 1) + " of "+ sql+ " returned "+ row.length+ " strings instead of 1");
    }
    res.add(row[0]);
  }
  return res;
}

public final List < String > executeStringListQuery ( String sql ) throws AdeException { final List < String [ ] > temp = executeStringListQuery2d ( sql ) ; final List < String > res = new ArrayList < String > ( temp . size ( ) ) ; for ( int i = 0 ; i < temp . size ( ) ; ++ i ) { final String [ ] row = temp . get ( i ) ; if ( row . length != 1 ) { throw new AdeInternalException ( "Row " + ( i + 1 ) + " of " + sql + " returned " + row . length + " strings instead of 1" ) ; } res . add ( row [ 0 ] ) ; } return res ; }
executes a given query , that is expected to return a list of strings .
