From a2bb687de1458d5a4ea18df199dbd83c0f157469 Mon Sep 17 00:00:00 2001 From: Diesel Niu Date: Thu, 3 Dec 2020 22:31:29 +0800 Subject: [PATCH] Update Cat.java --- src/main/java/com/github/hcsp/pet/Cat.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/hcsp/pet/Cat.java b/src/main/java/com/github/hcsp/pet/Cat.java index 163caaf..cbda9fa 100644 --- a/src/main/java/com/github/hcsp/pet/Cat.java +++ b/src/main/java/com/github/hcsp/pet/Cat.java @@ -6,5 +6,6 @@ public class Cat { public void sayName() { // Print itself's name to standard output (System.out) here // 在这里将自己的名字打印到标准输出(System.out) + System.out.println(this.name); } }