Using Iterators: Java Collections Framework Tutorial Part 10

///Using Iterators: Java Collections Framework Tutorial Part 10

Using Iterators: Java Collections Framework Tutorial Part 10

FavoriteLoadingAdd to favorites

Get complete courses at
This is a tutorial on using Iterators in Java. Iterators allow you to add or remove items from a list while looping through it, among other things.

source

Java468x60
By |2019-07-06T20:32:54+00:00July 6th, 2019|Java Video Tutorials|27 Comments

27 Comments

  1. arroganter Mistkerl July 6, 2019 at 8:32 pm - Reply

    Ive just read that All methods of an Interface do not contain implementation (method bodies) as of all versions below Java 8. Where is for example the next() method implemented? In the Linked LISt?

  2. MarkS July 6, 2019 at 8:32 pm - Reply

    I like that you add history about the API to the explanation, it makes it much more thorough and easy to understand.

  3. Norbert Balaz July 6, 2019 at 8:32 pm - Reply

    Huge thanks to you! Now I get it with the Iterator

  4. RD July 6, 2019 at 8:32 pm - Reply

    thanks

  5. Darko Milovanovic July 6, 2019 at 8:32 pm - Reply

    WTF?!?

  6. manish kalawade July 6, 2019 at 8:32 pm - Reply

    Hi John , you are too good.Thanks a lot for your tutorials. Can you please suggest me a tutorials whether free or paid for Selenium. Please let me know. Thanks again , keep up the good work

  7. Sky A TianLan July 6, 2019 at 8:32 pm - Reply

    thanks man

  8. Juan Alle July 6, 2019 at 8:32 pm - Reply

    great video, thanks

  9. Sr medicina July 6, 2019 at 8:32 pm - Reply

    YES!

  10. Guram Kankava July 6, 2019 at 8:32 pm - Reply

    Thank you very much.

  11. KingPB M July 6, 2019 at 8:32 pm - Reply

    Brilliant stuff John – I find your work really helpful – Do you have JBOSS videos as well? I know your Spring videos are good too.

  12. Black Power Ranger July 6, 2019 at 8:32 pm - Reply

    great explanation Sir, thank you

  13. Alok Kumar July 6, 2019 at 8:32 pm - Reply

    Simply great, after 4 yrs too .. going thru full series. Thanks again John.

  14. Sandip Prasai July 6, 2019 at 8:32 pm - Reply

    everything is great but a simple ignorance of you made me feel ooof!! I can't see the codes with my bare eyes, they are too small, and this is annoying to me. You could increase the font of editor or zoom into it , but you didn't.

  15. Daksh Gargas July 6, 2019 at 8:32 pm - Reply

    No one want's to listen to this filthy music.. just do ur job 🙂

  16. nick woodward July 6, 2019 at 8:32 pm - Reply

    my compiler seemed to complain about Iterator not taking the parameter type <String>, so I changed to ListIterator and everything was fine. not sure why, maybe because i'm using an arraylist. also it.remove() seems to do nothing for me – maybe as a result of using ListIterator, not Iterator (the flow of control is def going through the if block)

    great video though. thanks!

  17. TheiLame July 6, 2019 at 8:32 pm - Reply

    The way you speak.. it's like i can imagine royal masters in 17th century with those big curly wigs sitting down and talking about programming languages or while playing some Battledore and Shuttlecock in the meantime. Interesting sight, i tell you.

    I am just joking by the way. I think it makes you unique and it's not bad thing at all. Just sharing my imaginations. i think it's awesome

  18. sameer argade July 6, 2019 at 8:32 pm - Reply

    Thanks

  19. Aggerwal July 6, 2019 at 8:32 pm - Reply

    Thank you so much, I could not for the life of me figure out how to replace an element using iterators, turns out it was very simple, i was overcomplicating it. I will certainly look at more of your vids!

  20. Evgeny Goldin July 6, 2019 at 8:32 pm - Reply

    I must say, your tutorials are very clear and very informative! Thank you a lot!

  21. Laos V July 6, 2019 at 8:32 pm - Reply

    lot of THANKS…

  22. Sonnix Jackson July 6, 2019 at 8:32 pm - Reply

    Thank you sir – i love your courses! – very cleary explained. Thanks!

  23. NaN July 6, 2019 at 8:32 pm - Reply

    In short: Never use the new syntax since you almost never iterate over a collection while not adding or removing items. And using 2 different syntax for basically the same construct isn't very consistent.

  24. Archana Singh July 6, 2019 at 8:32 pm - Reply

    Thank you so much!! your videos have been most helpful…..

  25. Sahil Rally July 6, 2019 at 8:32 pm - Reply

    Thanks for your good cause. Wishes from India !!! 🙂

  26. Trax Morth July 6, 2019 at 8:32 pm - Reply

    Thank you very much

  27. Bhupendra Sharma July 6, 2019 at 8:32 pm - Reply

    Great Tutorials … crystal clear …

Leave A Comment

*