Collections in Java: Sets & Maps

Java    |    Intermediate
  • 15 videos | 1h 38m 32s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 62 users Rating 4.6 of 62 users (62)
The Java collections framework has several different, specialized collections, such as sets and maps. These allow you to store values and data in different ways. In this course, you'll explore these and other valuable collections from the Java collections framework. Create and work with sets, performing several different operations, including union, intersection, difference, and subset operations. Next, explore the different set implementations that Java offers beyond the basic HashSet. Discover how the LinkedHashSet and TreeSet differ in how elements of the set are accessed. Finally, work with another important and commonly used Java collection, the map. Investigate several different map implementations and use maps to build a Least Recently Used cache and a priority queue. When you're finished, you'll have a solid foundational, working knowledge in using special collections in the Java collections framework.


  • Discover the key concepts covered in this course
    Explore the basic characteristics of the 'set' data structure
    Recall how hash sets identify duplicates
    Recall how different types of sets are ordered
    Implement tree sets for predictable ordering of data
    Identify how the comparator and comparable interfaces are used in tree sets
    Store key-value pairs in maps
    View keys and values in maps as collections
  • Create dictionaries with keys and values of custom types
    Recognize different type of map implementations
    Implement an lru cache using a linkedhashmap
    Implement the comparator interface to access elements in a tree map in priority order
    Implement the comparable interface to access elements in a tree map in priority order
    Recall the special operations that can be performed on sorted maps
    Summarize the key concepts covered in this course


  • 2m 15s
  • 10m 11s
  • Locked
    3.  Identifying Duplicates in a HashSet
    9m 25s
  • Locked
    4.  Ordering Elements in Set Implementations
    6m 44s
  • Locked
    5.  Using Comparators in Tree Sets
    6m 19s
  • Locked
    6.  Using Comparables and Comparators in Tree Sets
    10m 4s
    In this video, you'll learn how to identify how the Comparator and Comparable interfaces are used in tree sets. You'll discover that if you want to be able to add custom Objects to TreeSets, your Objects should implement the Comparable interface or you need to specify a Comparator for the TreeSet. FREE ACCESS
  • Locked
    7.  Carrying Out Map Operations
    8m 47s
  • Locked
    8.  Working with Collection Views on a Map
    6m 41s
  • Locked
    9.  Using Custom Objects as Keys and Values
    6m 7s
  • Locked
    10.  Ordering Entries in Map Implementations
    4m 14s
  • Locked
    11.  Implementing an LRU Cache Using LinkedHashMap
    8m 24s
  • Locked
    12.  Using TreeMaps and Comparators
    7m 15s
  • Locked
    13.  Using TreeMaps and Comparables
    6m 7s
  • Locked
    14.  Performing Sorted Map Operations
    3m 55s
  • Locked
    15.  Course Summary
    2m 5s


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.


Rating 4.7 of 84 users Rating 4.7 of 84 users (84)
Rating 4.5 of 100 users Rating 4.5 of 100 users (100)
Rating 4.7 of 92 users Rating 4.7 of 92 users (92)