[Solved] Searching in folder


Good one, but it is a more clear to use listFiles(FileFilter filter)

public class MyFileFilter implements FileFilter {
   public boolean accept(File pathname) {
     if (pathname.isDirectory())
       return false;
     else {
       String temp[] = pathname.getName().split(".");
       if (temp[1].equals("a")) return true;
     }
   }
}

solved Searching in folder