Advanced Features in Java: Using the Java Stream API with Collections

Java SE 13
  • 9 Videos | 1h 14m 44s
  • Includes Assessment
  • Earns a Badge
Likes 32 Likes 32
In this course, you'll learn about how the Stream APIs provide ways to work with collections as streams of objects. You'll examine how operations such as filter, map, and foreach can be applied to collections by treating them as streams of data elements. Next, you'll learn how to use both anonymous inner class objects and lambda functions with streams, how to define predicates, and how to chain multiple stream operators together into a single pipeline that ends with a terminal operator returning a result. Next, you'll discover the differences between terminal and non-terminal operations, as well as between two different types of terminal operations - reduce and collect operations. Finally, you'll see how collect operations can be used to perform extremely complex operations on collections with minimal code.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    recognize what streams are and some of the methods you can invoke on them
    describe how to test whether all elements in a stream satisfy a specific condition
    demonstrate that predicates can be used to transform one stream object into another
    associate streams containing integer, long, float, and double objects to specific stream types
  • apply terminal operations on predicates
    assess how to test streams with the .collect function in order to return a collection
    define a custom collector and use it with a stream predicate
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 30s
    UP NEXT
  • Playable
    2. 
    Introduction to Streams
    8m
  • Locked
    3. 
    Stream Predicates
    10m 4s
  • Locked
    4. 
    Predicates that Return Streams
    10m 48s
  • Locked
    5. 
    Mapping a Predicate
    9m 19s
  • Locked
    6. 
    Terminal Operations Using Predicates
    9m 20s
  • Locked
    7. 
    The Use of Collectors
    10m 55s
  • Locked
    8. 
    Custom Collectors
    8m 18s
  • Locked
    9. 
    Course Summary
    1m 59s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

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

Digital badges are yours to keep, forever.