摘要: 直接给出代码! //单例模式 //饿汉模式public Class Single{//封装 private static Single single= new Single(); //封装 提供一个外接可以访问的方法 public static Single getInstance(){ retur 阅读全文
posted @ 2016-12-17 14:47 半仙人 阅读(108) 评论(0) 推荐(0) 编辑