标签:stat size pac 使用 ati lte set log string
该页面仅用于测试页面效果使用,内容请自动忽视
1.链接地址01
2.链接地址02
3.链接地址03
4.链接地址04
5.链接地址05
JavaDemo.java
package fileTestDemo; import java.io.File; import java.io.FilenameFilter; public class FileTestDemo { public static void main(String[] args) { File fileDemo = new File("E:/java"); FileAccept fileAccept = new FileAccept(); fileAccept.setExtendname("java"); File[] fileList = fileDemo.listFiles(fileAccept); String[] filename = fileDemo.list(fileAccept); for (int i = 0; i < fileList.length; i++) { System.out.println(fileList[i].getAbsolutePath()); } for (int i = 0; i < filename.length; i++) { System.out.println(filename[i]); } } } class FileAccept implements FilenameFilter { private String extendname; @Override public boolean accept(File dir, String name) { return name.endsWith(extendname); } public String getExtendname() { return extendname; } public void setExtendname(String extendname) { this.extendname = "." + extendname; } }
标签:stat size pac 使用 ati lte set log string
原文地址:http://www.cnblogs.com/caser-yuan/p/7384814.html