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

no input validation #10

Closed
Siwel-Yelpoc opened this Issue Oct 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Siwel-Yelpoc
Collaborator

Siwel-Yelpoc commented Oct 2, 2018

there is no validation for the input.
i.e; if you input a character symbol instead of a numeric value, the program crashes.

error message (with input example);

Please enter cash register's float: c
Exception in thread "main" java.lang.NumberFormatException: For input string: "c"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at CashRegister.main(CashRegister.java:14)

@Siwel-Yelpoc Siwel-Yelpoc self-assigned this Oct 2, 2018

@Siwel-Yelpoc Siwel-Yelpoc added this to the Milestone 1 milestone Oct 2, 2018

@Siwel-Yelpoc Siwel-Yelpoc added the bug label Oct 2, 2018

thanhtungdao added a commit that referenced this issue Oct 2, 2018

fix #2 #10 #6 #3
The issues with the general interface are fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment