public static boolean containsCharacters ( String in , String chars ) { for ( int i = 0 ; i < chars . length ( ) ; i ++ ) { if ( in . indexOf ( chars . charAt ( i ) ) != - 1 ) { return true ; } } return false ; }
tells whether one or more characters in a String are part of a given String