Kyle-Pu/Birthday-Reminder-Contacts-App

Prevent java.lang.NumberFormatException

Opened this issue · 2 comments

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.

Hi. Shouldn't the input be number validated? Anyway I think the issue would be resolved with a try/catch as I understand it.

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.