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
You can use the try..catch statement in java, to capture an exception that may arise from Integer.parseInt().
Example:
try { int i = Integer.parseint(stringToParse); //parseInt succeded } catch(Exception e) { //parseInt failed }