JAVA | How to use Integer.parseInt() to see if a int is in a string & TRY CATCH for bounds checking