1.6.1 - Stream Creation
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is the method to create a stream from a list?
💡 Hint: Think about how you start using streams.
What does the filter operation do?
💡 Hint: Consider filtering items based on a specific criteria.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What method do you use to create a stream in Java?
💡 Hint: Think about how you start working with streams.
True or False: The map operation can change the elements in a stream.
💡 Hint: Consider what the purpose of map is.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a program that takes a list of integers and produces a list of their squares if they are odd.
💡 Hint: You need to filter and transform the numbers in one go.
Using a list of strings, write a method that returns a single string, which is a concatenation of all names that are longer than 3 characters, separated by commas.
💡 Hint: Focus on how you can leverage collect to join elements into a single string.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.