-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Devjunr - Desafio 03 #1110
@Devjunr - Desafio 03 #1110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devJunr está quase lá mas está aceitando eu digitar letras ou palavras como parâmetros. Precisa tratar isso pois nunca se pode confiar no usuário da tua aplicação
java palindromicos.java A B
Exception in thread "main" java.lang.NumberFormatException: For input string: "A"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:668)
at java.base/java.lang.Integer.parseInt(Integer.java:786)
at palindromicos.main(palindromicos.java:3)
@devJunr Precisa ajustar a mensagem de erro pois números negativos são inteiros também. Neste caso a mensagem de erro precisa dizer que os dois valores precisam ser inteiros positivos. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parabéns!
No description provided.