Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create a method that returns iterator in java
please help me

What I have tried:

I didnt try becaouse i dont knoww
Posted
Updated 29-Jun-16 16:20pm
Comments
Sergey Alexandrovich Kryukov 29-Jun-16 22:12pm    
I'm just curious: if you "don't know", how you came to the idea that you may need such thing as a function returning an iterator. May I assume that this is because someone requested you to create such thing, gave you an assignment?

This is what I would suggest: learn iterators, their purposes, decide what iterators you need and why, practice in using them, and then just create a function (do you need to learn what is "return" and how it's used?) and return what you need.

—SA

1 solution

Please see my comment to the question. This is what I would suggest:
Good luck.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900