From 783f197bc6b51b4f7b753498d0d5a4e98f6054b8 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:33 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E8=AE=BE=E8=AE=A1=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=20-=20=E7=BB=84=E5=90=88.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 示例代码补上 import。 --- notes/设计模式 - 组合.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notes/设计模式 - 组合.md b/notes/设计模式 - 组合.md index 37f286e6..7da98597 100644 --- a/notes/设计模式 - 组合.md +++ b/notes/设计模式 - 组合.md @@ -32,6 +32,9 @@ public abstract class Component { ``` ```java +import java.util.ArrayList; +import java.util.List; + public class Composite extends Component { private List child;