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