home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JSAMPLES.Z
/
Overview10.java
< prev
next >
Wrap
Text File
|
1998-05-08
|
553b
|
20 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;
import com.objectspace.jgl.util.*;
public class Overview10
{
public static void main( String[] args )
{
Array array = new Array();
array.add( "jolly" );
array.add( "good" );
array.add( "show" );
// Create a reverse iterator positioned at the end of the array.
ReverseIterator iterator = new ReverseIterator( array.end() );
while ( iterator.hasMoreElements() )
System.out.println( iterator.nextElement() );
}
}