2 ms·
> Third, if you were to import guava or some other library that makes handling files more streamlined, you could get to an equivalent number of lines in the Jav
by notamy 9y ago
> Third, if you were to import guava or some other library that makes handling files more streamlined, you could get to an equivalent number of lines in the Java example.
You don't even need that. The Files[1] class - which has been in the standard library since at least Java 7 - makes this really easy to do.
[1] https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html https://docs.oracle.com/javase/8/docs/api/java/nio/file/File...