The program reads a text file urls.txt (more than 40k addresses) and displays the top 10 most common domains to the console. The program takes into account possible spaces and invalid characters, and also sorts the result in descending order.
- HashMap, BufferReader;
- Java 8. Stream;
- Java 8. Lambda.
In console sorted top 10 domains without addresses: