Skip to main content
2 of 3
replaced http://stackoverflow.com/ with https://stackoverflow.com/
user avatar
user avatar

nice usage of java.io.FileFilter as seen on https://stackoverflow.com/a/286001/146745

File fl = new File(dir); File[] files = fl.listFiles(new FileFilter() { public boolean accept(File file) { return file.isFile(); } }); 
andrej
  • 4.8k
  • 2
  • 41
  • 40