FileDocCategorySizeDatePackage
Deque3.javaAPI DocExample784Sat Sep 12 03:01:00 BST 1998None

Deque3

public class Deque3 extends Object
Insertion.
see
com.objectspace.jgl,Deque
version
3.0.0
author
ObjectSpace, Inc.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Deque deque = new Deque();
    deque.add( "bat" );
    deque.add( "cat" );
    deque.add( "dog" );
    System.out.println( "deque = " + deque );
    System.out.println();

    deque.insert( deque.begin(), "ape" );
    System.out.println( "After insert at begin = " + deque );

    deque.insert( deque.end(), "emu" );
    System.out.println( "After insert at end = " + deque );

    deque.insert( 3, 2, "fox" );
    System.out.println( "After deque.insert( 3, 2, fox ) = " + deque );