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;