// 子系统publicclassSubSystemA{publicvoiddoA(){
System.out.println("doing A stuff");}}
// 子系统publicclassSubSystemB{publicvoiddoB(){
System.out.println("doing B stuff");}}
// 子系统publicclassSubSystemC{publicvoiddoC(){
System.out.println("doing C stuff");}}
// 外观角色 FacadepublicclassFacade{private SubSystemA a =newSubSystemA();private SubSystemB b =newSubSystemB();private SubSystemC c =newSubSystemC();// 对外接口publicvoiddoA(){this.a.doA();}// 对外接口publicvoiddoB(){this.b.doB();}// 对外接口publicvoiddoC(){this.c.doC();}}