08activity1 DataStructures&Algorithms Morales
08activity1 DataStructures&Algorithms Morales
Java Statement:
HashMap <String, String> programs = new HashMap <String, String>();
Java Statement:
for (Map.Entry e : programs.emptySet()); {
System.out.println(e.getKey() + “: “ + e.getValue());
}
4.Delete the first entry.
Java Statement:
programs.remove(“BSIT”);
5.Check whether the map contains the key "BSCpE"
System.out.println(programs.containsKey(“BSCpE”);