Question: In Java intergerNode.java (from textbook) Assignment Objective Implement and test an ordered linked list of Integer nodes using references (as opposed to an array) Implementation
In Java

intergerNode.java (from textbook)

Assignment Objective Implement and test an ordered linked list of Integer nodes using references (as opposed to an array) Implementation Details Use the textbook implementation of Integer node, integerNode.java Your code should include comments and documentation. Testing a Word document is preferred, as is the use of Here is the procedure for testing, which must be screenshots) .Add the numbers 2, 3, and 6 to the list Display the list contents Add 5 to the list Display the list contents Delete 3 from the list Display the list contents Delete 2 from the list Display the list contents public class IntegerNode private int item; private IntegerNode next; public IntegerNode (int newItem) I item = newItem; next - null; I/ end constructor public IntegerNode (int newItem, IntegerNode nextNode) item = newItem; next = nextNode; I/ end constructor public void setItem (int newItem) item newItem; // end setItenm public int getItem) return item // end getItenm public void setNext (IntegerNode nextNode) nextnextNode // end setNext public IntegerNode getNext) return next /7 end getNext // end class IntegerNode
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
