CPSC 170 Post Lab 8: Removing From a Linked List

Due Tuesday, March 26

Add a method public void removeElement(int oldVal) to your IntList class from Lab 8. The removeElement function should remove all occurrences of oldVal from the list; if oldVal does not appear in the list, it should do nothing. Note that oldVal will not be replaced with anything; it will simply be removed.

Add this option to your IntListTest class, allowing the user to enter the value to be removed.

Turn in hardcopy of your revised IntList and IntListTest classes and tar and e-mail me your postlab8 directory. Note: Don't modify the IntList and IntListTest files in your lab8 directory; copy them into your postlab8 directory and work with them there.