From 3bd24d4322ce7ba31bab0c95bbb1a3faa1c610bf Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:32 +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=E4=BA=AB=E5=85=83.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 示例代码补上 import。 --- notes/设计模式 - 享元.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notes/设计模式 - 享元.md b/notes/设计模式 - 享元.md index cf31710d..30bd90e4 100644 --- a/notes/设计模式 - 享元.md +++ b/notes/设计模式 - 享元.md @@ -35,6 +35,8 @@ public class ConcreteFlyweight implements Flyweight { ``` ```java +import java.util.HashMap; + public class FlyweightFactory { private HashMap flyweights = new HashMap<>();