实验七写完了
This commit is contained in:
@@ -12,6 +12,10 @@ public class HelloHashMap {
|
||||
hashMapExample.put(scanner.next(), scanner.next());
|
||||
}
|
||||
// ---------------------Begin------------------------
|
||||
hashMapExample.put("name", "lihong");
|
||||
hashMapExample.remove("firstkey");
|
||||
hashMapExample.replace("secondkey", "educode");
|
||||
System.out.println(hashMapExample);
|
||||
// ---------------------End------------------------
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user