ArrayList
for (File f : fileList) {
System.out.println(f);
}
}
public static ArrayList
{
File file = new File(".");
File[] files = file.listFiles();
String filename;
ArrayList
for (int i = 0; i < files.length; i++) {
filename = files[i].toString();
if (filename.endsWith("csv")) {
fileList.add(files[i]);
}
}// end for
return fileList;
}// showFileName end
沒有留言:
張貼留言