Click here to Skip to main content
13,898,182 members
Rate this:
Please Sign up or sign in to vote.
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
Updated 29-Jun-16 16:20pm
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.


1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190306.1 | Last Updated 29 Jun 2016
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100