debug9_2.java
来自「北京大学出版社的」· Java 代码 · 共 15 行
JAVA
15 行
package questions.c9;
public class Debug9_2 {
A x;
public static void main( String[] args ) {
Debug9_2 a = new Debug9_2();
a.x = new A();
System.out.println( a.x.getValue() );
}
class A {
private String s = "pork chops and applesauce";
public String getValue() {
return s;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?