内部类值的输出疑问
public class Group{
private static int coun;
private String name;
public class Student{
private int count;
private String name;
public void output(int count){
count++;
this.count++;
Group.coun++;
Group.this.coun++;
System.out.println(this);
System.out.println(count+" "+this.count+" "+Group.coun+" "+Group.this.coun++);
}
}
public static void main(String[] args){
Group g=new Group();
g.coun=10;
Group.Student s1=g.new Student();
s1.output(5);
}
}
输出结果:6 1 12 12