摘要: public class Dog { static Dog d ; private Dog() { } public static Dog getDog() { if(d == null) return d = new Dog(); return d; } } 阅读全文
posted @ 2019-06-04 10:49 小小超plus 阅读(106) 评论(0) 推荐(0) 编辑