Homework Help Question & Answers
Code in Java. please post as copyable text code, Not an image. LinkedIntList Programming: Add a…
Code in Java. please post as copyable text code, Not an image.
LinkedIntList Programming: Add a removeOdd() method to the LinkedIntList class. This method should remove the odd indexed nodes in the stored linked list. Add the test method to the existing test program. If you have a LinkedIntList with contents of:
[1,2,3,42,56,78,103]
Calling removeOdd() should leave the LinkedIntList looking like:
[2,42,78]
You must test for possible error conditions. Turn in just your code for the method and your console output for the test. Provide 3 test cases with one exercising your error test.
Add a comment