为什么说just cannot be resolved to a type?
package cn.fuck;public class hallo {
public static void main(String args[]) {
Fuck a=new Fuck();
just b=new just();
}
}
class Fuck{
public void suck() {
System.out.println("aaa");
}
class just extends Fuck{
public void ghost() {
System.out.println("dsddddddd!");
}
}
} 这是个内部类
public class hallo {
public static void main(String args[]) {
Fuck a = new Fuck();
Fuck.just b = a.new just();
}
}
class Fuck {
public void suck() {
System.out.println("aaa");
}
class just extends Fuck {
public void ghost() {
System.out.println("dsddddddd!");
}
}
}
页:
[1]