public static boolean isParsable(String input) { try { Integer.parseInt(input); return true; } catch (final NumberFormatException e) { return false; } }