摘要: public class Singleton { /** * @param args 单例模式+加锁操作 */ private static Singleton instance; private Singleton() { } public static Singleton geti... 阅读全文
posted @ 2014-04-30 11:01 蓦然回首的包子 阅读(199) 评论(0) 推荐(0)
摘要: public class Facade { /** * @param args 外观模式 */ One one; Two two; Three three; public Facade() { one=new One(); two=new Two(); three=new Three()... 阅读全文
posted @ 2014-04-29 11:45 蓦然回首的包子 阅读(206) 评论(0) 推荐(0)
摘要: public class Factory2 { /** * @param args 工厂模式 */ public static void main(String[] args) { // TODO Auto-generated method stub //工厂模式 Ifactory if... 阅读全文
posted @ 2014-04-28 17:01 蓦然回首的包子 阅读(235) 评论(0) 推荐(0)
摘要: public class Factory2 { /** * @param args 工厂模式 */ public static void main(String[] args) { // TODO Auto-generated method stub Ifactory ifactory =... 阅读全文
posted @ 2014-04-28 16:53 蓦然回首的包子 阅读(131) 评论(0) 推荐(0)
摘要: public class nixv { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String aString="abcdefg"; ... 阅读全文
posted @ 2014-04-25 16:28 蓦然回首的包子 阅读(164) 评论(0) 推荐(0)