class One {
Two two() {
return new Two() {
Two(){}
Two(String s) {
System.out.println("s= "+s);
}
};
}
}
class Ajay {
public static void main(String ...strings ){
One one=new One();
System.out.println(one.two());
}
}
上記のサンプル コードはコンパイルできません。「2 つ解決できません」と表示されます。このコードの問題は何ですか??