Hello,
I develop a class file, I begin with java and I want to simulate a filter with this function, but I stuck on how to return the collection of File
Here is my code
Any help on this will be appreciated, thanks for the help.Code:Public File[] list(String monFiltre){ File[] tbfh; for(File f: myFile.listFiles()){ if(f.getName().endsWith(monFiltre)){ tbfh = f; } } return tbfh; }
Bookmarks