1: What does the `filter` method do in the Stream API?
2: What is the purpose of the `map` method in the Stream API?
3: What does the `flatMap` method do in the Stream API?
4: What is the terminal operation used to collect elements into a Map in the Stream API?
5: What does the `reduce` method do in the Stream API?
6: In the Stream API, what is the purpose of the `forEach` method?
7: What is the purpose of the `distinct` method in the Stream API?
8: What does the `anyMatch` method do in the Stream API?
9: What is the purpose of the `sorted` method in the Stream API?
10: What is the purpose of the `findFirst` method in the Stream API?
0 Comments