Class DListInt

java.lang.Object
  extended byDListInt

public class DListInt
extends java.lang.Object

Doubly linked lists of integers. The list is a reference on the cell containing the first element.


Constructor Summary
DListInt(int p)
          Creates a cell containing p.
DListInt(int p, DListInt s)
          Inserts p in front.
 
Method Summary
 DListInt insert(DListInt head)
          Inserts the cell head in front of the list.
 DListInt remove(DListInt head)
          Removes the cell head in front of the list and returns it.
 java.lang.String toString()
          Returns the list ended with a dot.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DListInt

public DListInt(int p)
Creates a cell containing p.


DListInt

public DListInt(int p,
                DListInt s)
Inserts p in front.

Method Detail

insert

public DListInt insert(DListInt head)
Inserts the cell head in front of the list.


remove

public DListInt remove(DListInt head)
Removes the cell head in front of the list and returns it.


toString

public java.lang.String toString()
Returns the list ended with a dot.