java.lang.NumberFormatException: For input string: "quit"
There was a NumberFormatException. You can look that up in the API, but you can see what it means: a problem with the format of a number. It tried to read a number in a String, but found garbage instead. It even shows you the garbage: "quit", which of course isn't a number.