Today we're going to tackle ExitCommand.
1. Implement the following logic in ExitCommand:
1.1. Ask whether the user really wants to exit. Provide the following options: yes (y) or no (n).
1.2. If the user confirms, then say goodbye.
CashMachine (part 9)
- 40
Locked
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Elvis Lee
29 February 2020, 00:04
Don't use System.exit(0) for the Exit, just allow the program to terminate by itself, else will fail the validation.
0
Elvis Lee
21 February 2020, 23:25
It works according to the requirement, but failed the Validation. The validation doesn't show any information!
0
Roman
24 February 2020, 07:32
Please post your question with the attached solution in the section Help and give me a link.
0