static boolean containsNoDigit ( final String s ) { for ( int k = 0 ; k < s . length ( ) ; k ++ ) { if ( Character . isDigit ( s . charAt ( k ) ) ) { return false ; } } return true ; }
Checks whether a string contains a digit . Used for ignoring words with numbers