Guest User

Untitled

a guest
Jan 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. //Testing remove();
  2. System.out.println();
  3. currentInt=doubleList.getCurrentPosition();
  4. System.out.println("The current position is: " + currentInt);
  5. System.out.println("Removing the item that the current pointer points to(middle of list): ");
  6. doubleList.remove();
  7. doubleList.display();
  8. System.out.println();
  9. currentInt=doubleList.getCurrentPosition();
  10. System.out.println("The current position is: " + currentInt);
  11. System.out.println("Removing the item that the current pointer points to(beginning of the list): ");
  12. doubleList.remove();
  13. doubleList.display();
  14. System.out.println();
  15.  
  16. System.out.println("The current position is: " + currentInt);
  17. System.out.println("Removing the item that the current pointer points to: ");
  18. doubleList.remove();
  19. doubleList.display();
Add Comment
Please, Sign In to add comment