From 602e3a4cf87f2c8641ee6a508ff049984f570690 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=E8=A7=82=E5=AF=9F=E8=80=85.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 c8e3087c..48137626 100644 --- a/notes/设计模式 - 观察者.md +++ b/notes/设计模式 - 观察者.md @@ -30,6 +30,9 @@ public interface Subject { ``` ```java +import java.util.ArrayList; +import java.util.List; + public class WeatherData implements Subject { private List observers; private float temperature;