class Something { int i; public void doSomething() { System.out.println("i = " + i) class Something {int i;public void doSomething() {System.out.println("i = " + i);}}有什么错呢? 看不出来啊。 参考答案 查看答案