Re: java.lang errors



Integer.parseInt returns this NumberFormatException error if the input
is not numeric.

From the error it appears that enterLength.getText() returns the string
"Enter Length" which means the user has not entered a proper number.
You can either check if the string is numeric first, or enclose it in a
try{} catch{} block with a handler to catch NumberFormatExceptions.

.