Java Programmer 310-065-Lesson 25-Generics
and Collections(LinkedList)-Part 5
Duration: 17 minutes
Summary: In this video, we discuss LinkedList. LinkedList is very helpful to add and remove elements from the beginning, middle, or end of the list. I will show you (using Microsoft Paint) how to create a list graphically, and how to add and remove elements from it. In the example, we create two lists and populate them. Then, we copy one list into the other (using addAll). We also add elements to the beginning (using addFirst), and to the end (using addLast). Finally, we use a ListIterator, to traverse the list backwards and print the elements.
Methodology of the development of example: Good coding standard and simplified design to prepare for the Java programmer certification exam CX-310-065.
Technology Used: Java - Core Concepts.
Keywords: Class, Object, toString(), LinkedList, add, addAll, addFirst, addLast, ListIterator, hasPrevious.