Package linkedlist

Source Code of linkedlist.DemoDLL

package linkedlist;

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());
  }
}
TOP

Related Classes of linkedlist.DemoDLL

TOP
Copyright © 2018 www.massapi.com. 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.