public class TestThis{
TestThis(){
System.out.println(this);
}
public static void main (String[] args){
TestThis tt = new TestThis();}
}//教材中有两个错误,一个是第三行没有分号,另一个是第六行的public首字母大写了,应注意
TestThis@15db9742//看不懂,晕@~@
public class TestThis{
TestThis(){
System.out.println(this);
}
void show() {
System.out.println(this);
}
public static void main (String[] args){
TestThis tt = new TestThis();
tt.show();
System.out.println(tt);}
}//测试代码块2.0