刚刚完成一个作业 求批改
题目:编写具有两个方法的类,在第一个方法内调用第二个方法两次,第二次使用this关键字。我是这么理解的 不知道对不对
程序代码:
public class Lx8 {
public static void main(String[] args) {
Lx8 z= new Lx8();
z.a();
}
public void a() {
q();
this.q();
}
public void q() {
System.out.println("1");
}
}

