Better file search algorithm than creating a list of files
问题 For a project I'm doing I made a java program that searches for a file specified by user input. The code starts searching in a base directory specified by the user (ie: C:). It loops through all the files in this directory checking if the filename matches the search term given by the user, if it does match, the files absolute path is added to a string. If the file is a directory it is added to a list to be dealt with later. When the base folder is finished being searched it will search/remove