/help
I was asked to create a function which returns an iterator, how am I suppose to do this?
explain about what's the program:
I'm creating a program representing an "association table", I'm implementing this with a treeMap.
The last function I need to create is a function called "keyIterator" which returns an iterator which iterate over the map's keys.
How am I suppose to do this?
I implemented it with for-each loop which prints the keys and their values but it doesn't return any iterator...
2 Replies
⌛
This post has been reserved for your question.
Hey @Yarden! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Post Closed
This post has been closed by <@218019068219883520>.