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