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" ) );