public static int listSearchCaseInsensitive ( List < String > source , String target ) { for ( int i = 0 ; i < source . size ( ) ; i ++ ) { if ( target . equalsIgnoreCase ( source . get ( i ) ) ) { return i ; } } return - 1 ; }
Given a list of String do a case insensitive search for target string Used by resultsetMetadata to search for target column name