Manipulate a Stream in Java

Learn to manipulate the contents of a stream by using the Stream API. You will import a project that contains the existing classes you will need, retrieve a list of Movie objects, filter a stream that contains a string, change the type in a stream, sort the contents of a stream, and collect and display summary statistics for a stream.

Time
30 minutes
Difficulty
Beginner
Share
NEED TO TRAIN YOUR TEAM? LEARN MORE
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Overview

Note: Once you begin the Challenge Lab, you will not be able to pause, save, or exit and then return to your Challenge Lab. Please ensure that you have set aside enough time to complete the Challenge Lab before you start.

Understand the Scenario

You are a Java® developer. You need to manipulate the contents of a stream by using the Stream API. First, you will import a project that contains the existing classes you will need, and then you will retrieve a list of Movie objects by using the Streams API. Next, you will filter a stream that contains a string, and then you will change the type in a stream. Finally, you will sort the contents of a stream, and then you will collect and display summary statistics for a stream.

Understand Your Environment

You will be using the Eclipse IDE for Enterprise Java and Web Developers.