📅  最后修改于: 2022-03-11 14:52:46.895000             🧑  作者: Mango
public static boolean isParsable(String input) {
try {
Integer.parseInt(input);
return true;
} catch (final NumberFormatException e) {
return false;
}
}