FileDocCategorySizeDatePackage
Algorithms7.javaAPI DocExample696Sat Sep 12 03:01:00 BST 1998None

Algorithms7.java

// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;
import com.objectspace.jgl.algorithms.*;

/**
 * Reversing provides algorithms for changing the order of a sequence.
 *
 * @see com.objectspace.jgl.algorithms.Reversing
 * @version 3.0.0
 * @author ObjectSpace, Inc.
 */

public class Algorithms7
  {
  public static void main( String[] args )
    {
    Deque deque = new Deque();
    deque.add( "Batman" );
    deque.add( "Superman" );
    deque.add( "Phantom" );
    deque.add( "Spider-Man" );
    System.out.println( "before reverse = " + deque );
    Reversing.reverse( deque );
    System.out.println( "after reverse = " + deque );
    }
  }