Page 1 of 1

About Question enthuware.ocpjp.v8.2.1677 :

Posted: Fri Oct 30, 2015 3:24 pm
by rion
Hi

in the provided explanation example the method

Code: Select all

public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {        count = 0;  // reset the count before starting to visit a directory     }
does not return any value.

Re: About Question enthuware.ocpjp.v8.2.1677 :

Posted: Fri Oct 30, 2015 8:36 pm
by admin
It should have return FileVisitResult.CONTINUE;
Fixed.
thank you for your feedback!