摘要:
阅读全文
摘要:
1. 快捷生成set、get方法 : alt+shift+s +r 2.无参数构造方法 :alt+shift+s +c 3.有参数构造方法:alt+shift+s +o 阅读全文
摘要:
代码如下: public class SingleObject { public static SingleObject obj = new SingleObject(); public static SingleObject getInstance(){ return obj; } //当构造方法 阅读全文