Created
November 3, 2017 08:29
-
-
Save cirussaeb/7bc3ac620fea134c54e22534e1a719af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//main class for the node and linke list classes | |
package ds.linkedlist; | |
public class app { | |
public static void main(String[] args) { | |
SinglyLinkedList mylist = new SinglyLinkedList(); | |
mylist.insertFirst(25); | |
mylist.insertFirst(30); | |
mylist.insertFirst(100); | |
mylist.insertFirst(120); | |
mylist.displayList(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment