Collection Framework in Java - #17 - Iterating and Searching for Elements in a LinkedList

preview_player
Показать описание
Searching for elements in a LinkedList Example shows:
- How to check if an element exists in a LinkedList.
- How to find the index of the first occurrence of an element in the LinkedList.
- How to find the index of the last occurrence of an element in the LinkedList.

Iterating over a LinkedList example shows how to iterate over a LinkedList using:
- Java 8 forEach() and lambda expression.
- iterator()
- iterator() and Java 8 forEachRemaining() method
- descendingIterator()
- listIterator()
- simple for-each loop

#java #collections #javaguides
Рекомендации по теме
join shbcf.ru