遇到问题了内部类的,求帮助
package com.baidu.www;
public class test1 {
public class Jb(){
public void show() {
System.out.println("just do !");
}
}
public static void main(String[] args) {
test1 te1 = new test1();
Jb j1 = te1.new Jb();
j1.show();
}
}
这样写报错,求帮助
package com.baidu.www;
public class test1 {
public class Jb(){
public void show() {
System.out.println("just do !");
}
}
public static void main(String[] args) {
test1 te1 = new test1();
Jb j1 = te1.new Jb();
j1.show();
}
}
这样写报错,求帮助
2016-08-05
举报