import java.io.File;
import java.io.FileFilter;
import java.io.FilenameFilter;
public class Main {
public static void main(String[] argv) throws Exception {
File dir = new File("c:\\temp");
FilenameFilter filter = new FilenameFilter() {
public boolean accept(File dir, String name) {
return !name.startsWith(".");
}
};
String[] children = dir.list(filter);
}
}