home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
inprise
/
JSAMPLES.Z
/
Maps7.java
< prev
next >
Wrap
Text File
|
1998-05-08
|
382b
|
16 lines
// Copyright(c) 1996,1997 ObjectSpace, Inc.
import com.objectspace.jgl.*;
public class Maps7
{
public static void main( String[] args )
{
Pair pair1 = new Pair( "CAT", "Agatha" );
Pair pair2 = new Pair( "DOG", "Misty" );
HashMap map = new HashMap();
map.add( pair1 );
map.add( pair2 );
System.out.println( "map = " + map );
}
}