Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What method is used to create a stream from a list?
Think about how you access methods on objects.
What does the filter() method do?
Consider what it means to filter something.
Which method is used to create a stream from a list?
It's related to how you might think of accessing methods on objects.
True or False: The map() method can change the type of the elements in a stream.
Consider the purpose of mapping in general.
Write a method that takes a List of numbers and returns the average using Streams.
How can you accumulate values and get an average?
Given a string array, use streams to get distinct words and print them.
Think of what operation will help eliminate duplicates.
4 more questions in this section. Enroll free to practise them all.
Enroll free