Perform the following steps to implement the example:
- Create a class named FileSearch and specify that it implements the Runnable interface. This class implements the file search operation:
public class FileSearch implements Runnable {
- Declare two private String attributes: one named initPath, which will store the initial folder for the search operation, and the other named end, which will store the extension of the files this task is going to look for:
private String initPath; private String end;
- Declare a private List<String> attribute named results that will store the full paths of the files that this task has found:
private List<String> results;
- Implement the constructor of the class that will initialize ...