repl.it
linkLevel-5
1 Submit weekly exercises
2 Implement increment Level-5
Level-5
: Handle Errors
Teach Duke to deal with errors such as incorrect inputs entered by the user.
Example:
todo
____________________________________________________________
☹ OOPS!!! The description of a todo cannot be empty.
____________________________________________________________
blah
____________________________________________________________
☹ OOPS!!! I'm sorry, but I don't know what that means :-(
____________________________________________________________
When implementing this feature, you are also recommended to implement the following extension as collections classes (e.g., ArrayList
) have methods to easily delete an item at a specified location: