Package linkedlist

Examples of linkedlist.DoubleLinkedList


import linkedlist.DoubleLinkedList;

public class DemoDLL {
  public static void main(String args[]) {
    DoubleLinkedList dll = new DoubleLinkedList(99.349);
    dll.add("nknkljlk");
    dll.add(false);
    //dll.remove(99.349);
    dll.add(true);
    dll.add(6,12);
    dll.add(0,45);
    dll.add(999324);
    boolean r1 = dll.remove(new Integer(999324));
    dll.add(3,'M');
    Node r2 = dll.remove(7);
    Node r3 = dll.remove(0);
    System.out.println(dll.listIterator());
  }
View Full Code Here

TOP

Related Classes of linkedlist.DoubleLinkedList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.