package cn.Dbutils;

import java.io.*;

public class As {
static int num = 0;
static int c =0;
public static void main(String[] args) {
String per = "e/";
}
public static void show(File f){
for (File ff : f.listFiles()){
if (ff.isDirectory()){
show(ff);
}else if (ff.getName().endsWith(".java")){
System.out.println(ff.getAbsolutePath());
try {
BufferedReader reader = new BufferedReader(new FileReader(ff));
long lines = reader.lines().count();
c += lines;
System.out.println(lines);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
++num;
}
}
}
}
posted on 2020-12-21 15:18  liuyunche  阅读(281)  评论(0编辑  收藏  举报