Newer
Older
labs / tiddlers / content / review / java_exercises / _Review_Delete Feature.md
@Mark George Mark George on 15 Jul 2021 534 bytes Add review exercises

Add some functionality to your system that allows you to delete unwanted contacts from your list.

Add another menu option to the application class that allows the user to delete a contact. Add another static method for this feature to the application class.

Add a 'delete' method to your contact list class.

The 'delete' method should search for a particular name (you could reuse the code in the 'search' method here), and when a match is found, it should delete that item using the relevant method in the ArrayList object.