Created
December 30, 2016 18:31
-
-
Save arrayed/3895afeb665a013b467f1f6b25323889 to your computer and use it in GitHub Desktop.
Linked List Based List Driver Software Implementation in Java
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
//============================================================================ | |
// 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