if (s.endsWith(".java")) return true; // others? return false;
FNFilter2 ff = new FNFilter2(); ff.process(".");
String objects[] = (new File(dir)).list(this); for (int i=0; i<objects.length; i++) System.out.println(objects[i]);