question: public static int indexOfChars ( String str , String chars , int fromIndex ) { final int len = str . length ( ) ; for ( int pos = fromIndex ; pos < len ; pos ++ ) { if ( chars . indexOf ( str . charAt ( pos ) ) >= 0 ) { return pos ; } } return - 1 ; }
target:  Like String.indexOf() except that it will look for any of the characters in 'chars' (similar to C's strpbrk)