public static boolean isFloat ( CharSequence self ) { try { Float . valueOf ( self . toString ( ) . trim ( ) ) ; return true ; } catch ( NumberFormatException nfe ) { return false ; } }
Determine if a CharSequence can be parsed as a Float .