I\'m wondering how to do something only if Integer.parseInt(whatever) doesn\'t fail.
More specifically I have a jTextArea of user specified values seperated by line
public static boolean isParsable(String input) { try { Integer.parseInt(input); return true; } catch (final NumberFormatException e) { return false; } }