Prevent java.lang.NumberFormatException
Opened this issue · 2 comments
Kyle-Pu commented
When the user inputs something other than a number, a java.lang.NumberFormatException occurs. Stop this from showing up on the user's console. Instead display the default message in the switch statement.
daliadefelipee commented
Hi. Shouldn't the input be number validated? Anyway I think the issue would be resolved with a try/catch as I understand it.
Kyle-Pu commented
Hi @daliadefelipee! Yes, that's what we're looking for.
That sounds good. Thanks for the help. Currently, we don't have much work on this project but we're always open to contributors.