import java.io.FilenameFilter;
import java.util.*;
import java.util.Enumeration;
public class Test
{
public static void main(String[] args) {
File file = new File("E:/test/test2/");
String[] filelist = file.list(new DirFilter());
}
}
class DirFilter implements FilenameFilter{
int i= 0;
public boolean accept(File fl,String path){
System.out.println(fl+"\\"+path);
return false;
}
}