Java Collection iterator() MethodLast Updated : 17 Mar 2025 The iterator() method of Java Collection Interface returns an iterator over the elements in this collection. SyntaxParametersNA ReturnThe iterator () method returns an iterator over the elements in this collection. Example 1Output: 1.Ram 2.Sham 3.Mira 4.Rajesh Example 2Output: 71018 8000 1178 1190 Max number = 71018 Min number = 1178 Example 3Output: Characters : [a ,b ,c ,d ,e ,f ,g ,h ,i ,j ,k ,l ,m ,n ,o ,p ,q ,r ,s ,t ,u ,v ,w ,x ,y ,z ,] Next TopicJava Collection |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India