Anonymous
public text v1 · immutable public static boolean isNumber(String n) {
try {
Integer.parseInt(n);
} catch (NumberFormatException e) {
return false;
}
return true;
}
public static boolean isNumber(String n) {
try {
Integer.parseInt(n);
} catch (NumberFormatException e) {
return false;
}
return true;
}