From af5757209c37b1b6fdb86d97355cb6a71406e240 Mon Sep 17 00:00:00 2001 From: GaroKkk <55485105+GaroKkk@users.noreply.github.com> Date: Wed, 25 Sep 2019 18:48:55 +0800 Subject: [PATCH] Main.java fix Bug --- 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..13472df 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); + HashMap hashMap = new HashMap<>(); + print(hashMap); } public static void print(int i) {