CashMachine (part 9)

  • 40
  • Locked
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.
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Elvis Lee
Level 41 , Aurora, United States
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.
Elvis Lee
Level 41 , Aurora, United States
21 February 2020, 23:25
It works according to the requirement, but failed the Validation. The validation doesn't show any information!
Roman
Level 41
24 February 2020, 07:32
Please post your question with the attached solution in the section Help and give me a link.