Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the method to create a stream from a list?
Think about how you start using streams.
What does the filter operation do?
Consider filtering items based on a specific criteria.
What method do you use to create a stream in Java?
Think about how you start working with streams.
True or False: The map operation can change the elements in a stream.
Consider what the purpose of map is.
Create a program that takes a list of integers and produces a list of their squares if they are odd.
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.
Focus on how you can leverage collect to join elements into a single string.
5 more questions in this section. Enroll free to practise them all.
Enroll free