Build a linear search following the pseudocode approach above. You can put this code in simply a main, or you could design a static helper function in your HP static class that searches for files. Did you notice we used a stack to accomplish this directory searching

Respuesta :

Build a linear search following the pseudocode approach above.

Explanation:

Using the main below and the outline above, complete the iterative file searching algorithm in the method searchFiles().  Use fileObject.listFiles(), fileObject.isDirectory(), and fileObject.getName() to accomplish this below.

 

public static void main(String[] args) {

                 System.out.println( searchFiles(new File(“c:\\”), “hw3.zip”) );

}

public static String searchFiles(File path, String target) {  

//todo

}

ACCESS MORE
EDU ACCESS
Universidad de Mexico