public static int getMatchNo ( String [ ] strings , String s ) { for ( int i = 0 ; i < strings . length ; i ++ ) { if ( s . equals ( strings [ i ] ) ) { return i ; } } return - 1 ; }
get match string number