Advanced Features in Java: Working with Lists in Java

Java    |    Intermediate
  • 9 videos | 1h 7m 9s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 26 users Rating 4.5 of 26 users (26)
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • 2m 17s
  • 8m 58s
    After completing this video, you will be able to describe how lists can be instantiated with type parameters to achieve type safety. FREE ACCESS
  • Locked
    3.  Different List Implementations
    8m 27s
    After completing this video, you will be able to describe the ArrayList, LinkedList, and Vector classes and how these are all instances of the list, collection, and iterable interfaces. FREE ACCESS
  • Locked
    4.  Methods of the Collection Interface
    10m 52s
    Upon completion of this video, you will be able to describe important methods of the List interface and how the .addall, .removeall, and .retainall methods work. FREE ACCESS
  • Locked
    5.  Methods of the List Interface
    9m 7s
    Upon completion of this video, you will be able to describe how the .get, .set, .add, .indexof, and .lastindexof methods work. FREE ACCESS
  • Locked
    6.  Iteration over Lists
    9m 10s
    After completing this video, you will be able to describe how to iterate over lists using ListIterator. FREE ACCESS
  • Locked
    7.  More List Iteration Techniques
    9m 52s
    Upon completion of this video, you will be able to describe how the .hasnext, .next, .previous, and .hasprevious methods can be used to iterate over lists in different ways. FREE ACCESS
  • Locked
    8.  Range-views on Lists
    6m 45s
    Upon completion of this video, you will be able to describe when you can use the .sublist() method to get a part of a list. FREE ACCESS
  • Locked
    9.  Course Summary
    1m 40s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.8 of 59 users Rating 4.8 of 59 users (59)
Rating 4.6 of 169 users Rating 4.6 of 169 users (169)
Rating 4.5 of 526 users Rating 4.5 of 526 users (526)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 50 users Rating 4.4 of 50 users (50)
Rating 4.6 of 26 users Rating 4.6 of 26 users (26)
Rating 4.6 of 128 users Rating 4.6 of 128 users (128)