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

le-yams • 7 years ago

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

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

Regards :),

Yann

[CG]BOUGA • 7 years ago

Thanks! Fixed ;)