Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.
error

We made a wrong turn. Try again.

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();

}

}

#Trailhead Challenges

7 answers
0/9000