7 lines
235 B
Java
7 lines
235 B
Java
|
|
public static boolean isNumeric(String inputData) {
|
||
|
|
NumberFormat formatter = NumberFormat.getInstance();
|
||
|
|
ParsePosition pos = new ParsePosition(0);
|
||
|
|
formatter.parse(inputData, pos);
|
||
|
|
return inputData.length() == pos.getIndex();
|
||
|
|
}
|