Java Professional — Hard
Key points
- The code uses distinct() to remove duplicate elements
- sorted() arranges the elements in ascending order
- limit(3) restricts the output to the first 3 elements
Ready to go further?
Related questions
Java Professional — Hard
Key points
Ready to go further?
Related questions