Question: Java programming question. I want to create a iterator class, which it will return a iterator which store three objects. object 1 : 123 object

Java programming question.

I want to create a iterator class, which it will return a iterator which store three objects.

object 1 : "123" object 2: "456" object 3: "789"

Here is a part of the code:

public Iterator iterator(){

// please fill this part

}

This class return a iterator which store those 3 objects.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!