From fc20730bc2055fc13e34fa8ca0893b7dbae697f6 Mon Sep 17 00:00:00 2001 From: liuxing <1151879967@qq.com> Date: Tue, 5 Nov 2019 20:50:22 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=B7=B2=E8=A1=A5=E5=85=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/hcsp/Home.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/hcsp/Home.java b/src/main/java/com/github/hcsp/Home.java index 004c169..e938bab 100644 --- a/src/main/java/com/github/hcsp/Home.java +++ b/src/main/java/com/github/hcsp/Home.java @@ -11,5 +11,6 @@ public static void main(String[] args) { Cat white = new Cat(); white.name = "White"; white.sayName(); + } } From c178953991434e974d31acdf1788ad2af78a879a Mon Sep 17 00:00:00 2001 From: liuxing <1151879967@qq.com> Date: Tue, 5 Nov 2019 20:53:28 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=B7=B2=E8=A1=A5=E5=85=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/hcsp/pet/Cat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 163caaf..091a105 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -4,6 +4,8 @@ public class Cat { public String name; public void sayName() { + System.out.println("Black"); + System.out.println("White"); // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) } From 9f1d86ab22c920b110bf5574502a263fe41cdd3f Mon Sep 17 00:00:00 2001 From: liuxing <1151879967@qq.com> Date: Tue, 5 Nov 2019 21:00:42 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=B7=B2=E8=A1=A5=E5=85=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/hcsp/pet/Cat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 091a105..7189660 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -4,8 +4,8 @@ public class Cat { public String name; public void sayName() { - System.out.println("Black"); - System.out.println("White"); + System.out.println("我叫"+name); + // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) } From f7728af37914c81796c90e288d2ba5fa27844ab5 Mon Sep 17 00:00:00 2001 From: liuxing <1151879967@qq.com> Date: Tue, 5 Nov 2019 21:03:04 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E5=B7=B2=E8=A1=A5=E5=85=A8=E5=AE=9E?= =?UTF-8?q?=E4=BE=8B=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/github/hcsp/pet/Cat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 7189660..2ea7d11 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -4,7 +4,7 @@ public class Cat { public String name; public void sayName() { - System.out.println("我叫"+name); + System.out.println(name); // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) From cc33b4cd65e21b748158d0a9d14554bba212f57c Mon Sep 17 00:00:00 2001 From: liuxing <1151879967@qq.com> Date: Tue, 5 Nov 2019 21:17:49 +0800 Subject: [PATCH 5/5] 111111111 --- src/main/java/com/github/hcsp/pet/Cat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 2ea7d11..c4f7e47 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -4,9 +4,8 @@ public class Cat { public String name; public void sayName() { - System.out.println(name); - // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) + System.out.println(this.name); } }