Hello,
That's my code but i still have the following message :
"The constructor MyIterable should accept parameter of type List<String>."
Can someone help me please ?
public class MyIterable implements Iterable<String> {
private List<String> strings;
public MyIterable (List<String> strings)
{
this.strings = strings;
}
public Iterator<String> iterator() {
return strings.iterator();
}
}
7 answers