I have pasted my code at the bottom and I am getting the following error. The example is picked from "Thinking in Java" by Bruce Eckel. Would you please let me know the problem with the below mentioned code?
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method list(FilenameFilter) in the type File is not applicable for the arguments (FilenameFilter)