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


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

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.



Expected Duration (hours)
1.2

Lesson Objectives

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

  • 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
  • Course Number:
    it_jdadfjdj_06_enus

    Expertise Level
    Expert