home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JSAMPLES.Z
/
Iterators1.java
< prev
next >
Wrap
Text File
|
1998-05-08
|
459b
|
18 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;
import java.util.Enumeration;
public class Iterators1
{
public static void main( String[] args )
{
Array array = new Array();
array.add( "magical" );
array.add( "mystery" );
array.add( "tour" );
Enumeration iterator = array.elements();
while ( iterator.hasMoreElements() )
System.out.println( iterator.nextElement() );
}
}