Page 1 of 1

About Question enthuware.ocpjp.v8.2.1677 :

Posted: Sat Feb 27, 2016 2:03 pm
by oscar_
Syntax error in the last example. Semicolon is missing for the System.out.println() call.
public class MyFileVisitor extends SimpleFileVisitor<Path> {
    public FileVisitResult visitFile(Path p, BasicFileAttributes attr) {
      System.out.println("Visited file : "+p)
      return FileVisitResult.CONTINUE;
     }
}

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

Posted: Sat Feb 27, 2016 8:05 pm
by admin
Fixed.
thank you for your feedback!