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 Collection?
Think about how we access a method on a List.
Which class has the static method stream() to convert an array?
It's the same name as the method.
What method is used to create a Stream from a List?
Think about methods you can call on a List.
Using Arrays.stream() can take what type of data?
Recall the method usage and corresponding data types.
Write a Java method that takes in an array of integers and returns a Stream, performing an operation that squares each number.
Think about using map to modify each element in the Stream.
Implement a function that uses Stream.of() to create a Stream of your favorite programming languages and returns the count of how many languages start with 'J'.
Use filter() to narrow down the results for the specific condition.
5 more questions in this section. Enroll free to practise them all.
Enroll free