public static boolean isNumericOrPunctuationOrSymbols(String token){
  int len=token.length();
  for (int i=0; i < len; ++i) {
    char c=token.charAt(i);
    if (!(Character.isDigit(c) || Characters.isPunctuation(c) || Characters.isSymbol(c))) {
      return false;
    }
  }
  return true;
}

public static boolean isNumericOrPunctuationOrSymbols ( String token ) { int len = token . length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { char c = token . charAt ( i ) ; if ( ! ( Character . isDigit ( c ) || Characters . isPunctuation ( c ) || Characters . isSymbol ( c ) ) ) { return false ; } } return true ; }
returns true if a string consists entirely of numbers , punctuation , and / or symbols .
