Skip to content

Instantly share code, notes, and snippets.

@cirussaeb
Created November 3, 2017 08:29
Show Gist options
  • Save cirussaeb/7bc3ac620fea134c54e22534e1a719af to your computer and use it in GitHub Desktop.
Save cirussaeb/7bc3ac620fea134c54e22534e1a719af to your computer and use it in GitHub Desktop.
//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