public static int findFirstNotOf ( String container , String chars , int begin ) { //find the first occurrence of characters not in the charSeq from begin forward for ( int i = begin ; i < container . length ( ) && i >= 0 ; ++ i ) if ( ! chars . contains ( "" + container . charAt ( i ) ) ) return i ; return - 1 ; }
Find the first occurrence of characters not in the charSeq from begin