パブリッククラスC1は、Iterable {privateLinkedListlist;を実装します。public static class NC1 {...} ... x public Iterator iterator(){return list.iterator(); }}
しかし、日食は泣き言を言います(x-edラインで):
- The return type is incompatible with Iterable<NC1>.iterator()
- implements java.lang.Iterable<NC1>.iterator
どこに間違いがあるのかわかりません。誰かが助けることができますか?