protected static boolean isInteger(String string) {
try {
Integer.parseInt(string);
} catch(NumberFormatException e) {
return false;
} catch(NullPointerException e) {
return false;
}
return true;
}
}
No comments:
Post a Comment