string - Java - checking if parseInt throws exception - Stack Overflow
public static boolean isParsable(String input){ boolean parsable = true; try{ Integer.parseInt(input); }catch(NumberFormatException e){ parsable = false; } return parsable; } keep in mind that I meant ParseException as the proper type of exception ......