From ef0c00718a98d95f84dcde71cbf1c88cbd4e045d Mon Sep 17 00:00:00 2001 From: buuoltwo Date: Tue, 3 Dec 2024 10:43:14 +0800 Subject: [PATCH 1/2] 1 --- src/main/java/com/github/hcsp/objectbasic/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/github/hcsp/objectbasic/Main.java b/src/main/java/com/github/hcsp/objectbasic/Main.java index 31b5c3a..6df0246 100644 --- a/src/main/java/com/github/hcsp/objectbasic/Main.java +++ b/src/main/java/com/github/hcsp/objectbasic/Main.java @@ -5,7 +5,8 @@ public class Main { public static void main(String[] args) { // 请修复这里的编译错误,令实际调用的方法是print(HashMap) - print(null); +// print((HashMap)null); + print(new HashMap()); } public static void print(int i) { From 59dac14432844c6d073fad126e908ace25d030b9 Mon Sep 17 00:00:00 2001 From: buuoltwo Date: Tue, 3 Dec 2024 11:02:44 +0800 Subject: [PATCH 2/2] 2 --- src/main/java/com/github/hcsp/objectbasic/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/hcsp/objectbasic/Main.java b/src/main/java/com/github/hcsp/objectbasic/Main.java index 6df0246..b8af0b4 100644 --- a/src/main/java/com/github/hcsp/objectbasic/Main.java +++ b/src/main/java/com/github/hcsp/objectbasic/Main.java @@ -5,8 +5,8 @@ public class Main { public static void main(String[] args) { // 请修复这里的编译错误,令实际调用的方法是print(HashMap) -// print((HashMap)null); - print(new HashMap()); + print((HashMap)null); +// print(new HashMap()); } public static void print(int i) {