程序代码问题
class A{
	int y=11;
	void f(){
		y=y+1;
		System.out.println(y);
	}
}
class B extends A{
	int y=121;
	void g(){
		y=y+100;
		System.out.println(y);
	}
}
public class Example {
	public static void main(String[]args){		
		B b=new B();
		b.y=222;
		b.g();
		b.f();
	}
}
大家帮我看下这个代码运行的了吗?为什么我是MyEclipse里面运行提示
Exception in thread "main" 
java.lang.NoSuchFieldError: y
	at Example.main(Example.java:19)
------解决方案--------------------粘贴过去没问题啊
输出
322
12
应该是你的配置错了