把实验七实验报告里的代码拷进来了

This commit is contained in:
2024-06-10 18:38:44 +08:00
parent ffcafcadea
commit 2c7ad64d2f
5 changed files with 58 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package task4;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;
public class HelloHashMap {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
HashMap hashMapExample = new HashMap<>();
for (int i = 0; i < 2; i++) {
hashMapExample.put(scanner.next(), scanner.next());
}
// ---------------------Begin------------------------
// ---------------------End------------------------
}
}