home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-07-14 | 423 b | 17 lines |
- // Copyright(c) 1996 ObjectSpace, Inc.
- import jgl.*;
-
- public class Overview1
- {
- public static void main( String[] args )
- {
- HashMap chemicals = new HashMap();
- chemicals.put( "Ca", "Calcium" );
- chemicals.put( "Au", "Gold" );
- chemicals.put( "He", "Helium" );
- System.out.println( "chemicals = " + chemicals );
- System.out.println( "Au means " + chemicals.get( "Au" ) );
- }
- }
-
-