I’m trying to filter the files by date and to read each file. Ihave a find() method that read each filename andit returns a files start by “B” in array. The second methodfilesort(), it will return all the file dates fromfilename that sent from find() method. In mainmethod I want to read the file by the specific date i’m giving. ifall the files has the same date, it reads all the file. However,from the files one of the file has different date it will throwerror.
public static String[] find(String rootPath){
File root = newFile(rootPath);
// Filter files whose name
OR
OR