public class NumberUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNumber(String str)
Checks whether the String a valid Java number.
|
public static boolean isNumber(String str)
Checks whether the String a valid Java number.
Valid numbers include hexadecimal marked with the 0x
qualifier, scientific notation and numbers marked with a type
qualifier (e.g. 123L).
Null and empty String will return
false.
str - the String to checktrue if the string is a correctly formatted numberCopyright © 2011–2024. All rights reserved.