Advanced Features in Java: Working with Lists in Java


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

In this course, you'll focus on ArrayLists, which are a specific instantiation of the List interface. You'll learn about the List, Collection, and Iterable interfaces, and how the different list implementations such as ArrayList, Vector, and LinkedList, implement these interfaces. You'll then explore different iteration operations over lists and the ListIterator object. You'll see how to avoid ConcurrentModification exceptions, which can occur if code attempts to simultaneously iterate over a list and modify that list’s contents. Next, you'll learn how to perform range-view operations on lists. Finally, you'll examine the shallow-copy nature of range-views, and how, when you modify an element in a range-view, the elements in the underlying list are being modified as well.



Expected Duration (hours)
1.1

Lesson Objectives

Advanced Features in Java: Working with Lists in Java

  • discover the key concepts covered in this course
  • describe how lists can be instantiated with type parameters to achieve type safety
  • describe the ArrayList, LinkedList, and Vector classes and how these are all instances of the list, collection, and iterable interfaces
  • describe important methods of the List interface and how the .addall, .removeall, and .retainall methods work
  • describe how the .get, .set, .add, .indexof, and .lastindexof methods work
  • describe how you can iterate over lists using ListIterator
  • describe how the .hasnext, .next, .previous, and .hasprevious methods can be used to iterate over lists in different ways
  • describe when you can use the .sublist method to get a part of a list
  • summarize the key concepts covered in this course
  • Course Number:
    it_jdadfjdj_02_enus

    Expertise Level
    Intermediate