package Homework;
import java.io.File;
public class File1 {
public static void main(String[] args) {
show01(new File("D:\\"));
}
private static void show01(File file){
File[] files=file.listFiles();
for (File file1:files){
if ((file1.isHidden()&&(file1.isFile()))){
String name=file.getName();
File file2=new File("D:\\");
long length=file.length();
System.out.println(file2.getAbsolutePath());
System.out.println("文件名称:"+name);
System.out.println("文件长度是:"+length);
}