We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

le-yams • 6 years ago

The lines reading part for the second method can be simplified with:

reader.lines().forEach(System.out::println);

Regards :),

Yann

[CG]BOUGA • 6 years ago

Thanks! Fixed ;)