static boolean isPossibleFP(String val){
  final int length=val.length();
  for (int i=0; i < length; ++i) {
    char c=val.charAt(i);
    if (!(c >= '0' && c <= '9' || c == '.' || c == '-' || c == '+' || c == 'E' || c == 'e')) {
      return false;
    }
  }
  return true;
}

static boolean isPossibleFP ( String val ) { final int length = val . length ( ) ; for ( int i = 0 ; i < length ; ++ i ) { char c = val . charAt ( i ) ; if ( ! ( c >= '0' && c <= '9' || c == '.' || c == '-' || c == '+' || c == 'E' || c == 'e' ) ) { return false ; } } return true ; }
returns true if it ' s possible that the given string represents a valid floating point value ( excluding nan , inf and - inf ) .
