package mytest;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.TreeSet;
public class CreateFile {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
File f2=new File("D:\\mt4");
try {
findSingleFile(f2);//参数是被检测的文件不能带有文件夹
} catch (Exception e) {
e.printStackTrace();
}
}
public static void findSingleFile(File file) throws Exception {
File []files1=file.listFiles();
TreeSet tchongfu=new TreeSet();
int count = 0 ;
for(int x=0;x
for(int y=x+1;y
if(files1[x].length()==files1[y].length()){
synchronized