From 7196970d6370885755b31c64991f4cbfbe2240f4 Mon Sep 17 00:00:00 2001 From: LatteCosmos Date: Wed, 17 Dec 2025 10:31:31 +1100 Subject: [PATCH] print name --- 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..1aa199e 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(name); } }