问轩博客

展开菜单

单例设计模式的代码

单例设计模式的代码
class Single {  private int num;  public void setNum(int num)  {   this.num = num;  }     public int getNum()  {   r...