摘要:
import java.io.File; import java.util.Arrays; import java.util.Comparator; import java.util.Date; public class Log { public static void main(String[] args) { File file = new File("F:\\baby"); File[] fs = file.listFiles(); Arrays.sort(fs, new CompratorByLastModified()); for (int i = 0; i { 阅读全文