⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug7_1.java

📁 北京大学出版社的
💻 JAVA
字号:
package questions.c7;
public class Debug7_1 implements Cloneable {
   StringBuffer sb
      = new StringBuffer( "Sales Report for " );
   public Debug7_1 clone()
              throws CloneNotSupportedException {
      Debug7_1 result = super.clone();
      result.sb
         = new StringBuffer( this.sb.toString() );
      return result;
   }
   public static void main( String[] args )
              throws CloneNotSupportedException {
      Debug7_1 x = new Debug7_1();
      Debug7_1 y = x.clone();
      x.sb.append( "October" );
      System.out.println( y.sb );
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -