** Java Stream API's `distinct()` Method: A Simplified Way to Remove Duplicates
The Java Stream API introduced in Java 8 provides a method called `distinct()` that filters out duplicate elements from a stream. This method compares each element using the `equals()` method and keeps only the first occurrence of a duplicate.
**
Source: https://dev.to/realnamehidden1_61/java-streamdistinct-495k