home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / OSpace / jgl.exe / jgl_2_0 / examples / Overview10.java < prev    next >
Encoding:
Java Source  |  1997-03-14  |  517 b   |  19 lines

  1. // Copyright(c) 1996,1997 ObjectSpace, Inc.
  2. import COM.objectspace.jgl.*;
  3.  
  4. public class Overview10
  5.   {
  6.   public static void main( String[] args )
  7.     {
  8.     Array array = new Array();
  9.     array.add( "jolly" );
  10.     array.add( "good" );
  11.     array.add( "show" );
  12.  
  13.     // Create a reverse iterator positioned at the end of the array.
  14.     ReverseIterator iterator = new ReverseIterator( array.end() );
  15.     while ( iterator.hasMoreElements() )
  16.       System.out.println( iterator.nextElement() );
  17.     }
  18.   }
  19.