Java Collections - Java Iterator & Remove Element | Java Tutorial Part 1

Published: 20 June 2020
on channel: Coding Examples
398
1

In this Java Tutorial video, we will study hoe to use Java's Iterator over collections. We will try to remove a collection element using Foreach and Iterator. This tutorial explains about hasNext() and next() methods of the iterator. We will also use the remove() method to change underlying collection.

00:00 Introduction
00:30 Java Iterator
02:12 Legacy For..each
06:25 Iterator Methods
11:42 Eclipse Demo - Adding Elements
14:29 Eclipse Demo - Remove Element from for loop
17:40 Eclipse Demo - Use Iterator to iterate
22:43 Eclipse Demo - Remove Arraylist Element via Iterator


On this page of the site you can watch the video online Java Collections - Java Iterator & Remove Element | Java Tutorial Part 1 with a duration of hours minute second in good quality, which was uploaded by the user Coding Examples 20 June 2020, share the link with friends and acquaintances, this video has already been watched 398 times on youtube and it was liked by 1 viewers. Enjoy your viewing!