Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Testing remove();
- System.out.println();
- currentInt=doubleList.getCurrentPosition();
- System.out.println("The current position is: " + currentInt);
- System.out.println("Removing the item that the current pointer points to(middle of list): ");
- doubleList.remove();
- doubleList.display();
- System.out.println();
- currentInt=doubleList.getCurrentPosition();
- System.out.println("The current position is: " + currentInt);
- System.out.println("Removing the item that the current pointer points to(beginning of the list): ");
- doubleList.remove();
- doubleList.display();
- System.out.println();
- System.out.println("The current position is: " + currentInt);
- System.out.println("Removing the item that the current pointer points to: ");
- doubleList.remove();
- doubleList.display();
Add Comment
Please, Sign In to add comment