单例模式两种书写方式
摘要:两种都是静态的 1、 public class Single{private Single(){ 立即加载private static Single s= new Single();public static Single getSingle(){ return s; } } 2、 public c
阅读全文
posted @ 2019-11-11 22:22
posted @ 2019-11-11 22:22
posted @ 2019-11-11 22:20
posted @ 2019-11-11 22:18