50,528
社区成员
发帖
与我相关
我的任务
分享
public class Out {
private In t1;
public class In{
//成员内部类
}
void a(In t1){
//外部类的一个方法
}
public static void main(String[] args) {
Out t = new Out();
t.a(t1);//这里报错了,说,t1 必须是静态的
}
}