📄 test.java~1~
字号:
/** * See page 198 of DESIGN PATTERNS [1995]. * Implemented by Blueprint Technologies, Inc. *//** * Package */package com.blueprint.patterns.gamma.structural.flyweight;/** * Test driver for the pattern. */public class Test{ public static void main( String arg[] ) { try { FlyweightFactory factory = new FlyweightFactory(); Flyweight fly1 = factory.getFlyweight( "Fred" ); Flyweight fly2 = factory.getFlyweight( "Wilma" ); } catch( Exception e ) { e.printStackTrace(); } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -