Singly Linked List Main.java is modified