Skip to content

Instantly share code, notes, and snippets.

@arrayed
Created December 30, 2016 18:31
Show Gist options
  • Save arrayed/3895afeb665a013b467f1f6b25323889 to your computer and use it in GitHub Desktop.
Save arrayed/3895afeb665a013b467f1f6b25323889 to your computer and use it in GitHub Desktop.
Linked List Based List Driver Software Implementation in Java
//============================================================================
// Name : DLinkedListDriver.java
// Author : Amritpal Singh
// Version : v0.1
// Copyright : arrayed.net
// Description : Linked List Based List Driver Software Implementation in Java
//============================================================================
public class DLinkedListDriver {
public static void main (String[] args) {
int i=0;
DLinkedList<Integer> myList = new DLinkedList<Integer>();
// enter 50 integers in the list
while (i < 50) {
myList.insertLast(i);
}
System.out.println("\n");
System.out.println("Displaying values stored myList:");
if (!myList.isEmpty()) {
myList.print();
}
System.out.println("\n");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment