home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BUG 15
/
BUGCD1998_06.ISO
/
aplic
/
jbuilder
/
jsamples.z
/
Container2.java
< prev
next >
Wrap
Text File
|
1997-07-30
|
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() );
}
}