July 2018
Intermediate to advanced
242 pages
8h 6m
English
We start by instantiating the File type instance that references the src/main/resources directory and invoking the walk() function on it. walk() returns the FileTreeWalk instance, which is a high-level abstraction layer over the filesystem and allows us to iterate through the files and subdirectories of the original File object.
Next, we apply a few filtering operations—removing the File objects referencing directories, removing files that don't contain the .txt extension, and removing ...
Read now
Unlock full access