import java.io.File;html
public class a_22 {java
public static void main(String[] args) { File f= new File("D:\\tianya\\2019.3.14\\html"); System.out.println(f.isDirectory()); System.out.println(f.isAbsolute()); System.out.println(f.isFile()); System.out.println(f.isHidden()); System.out.println(f.canExecute()); System.out.println(f.canRead()); System.out.println(f.canWrite()); System.out.println(f.getAbsolutePath()); System.out.println(f.getFreeSpace()); System.out.println(f.getName()); System.out.println(f.getParent()); System.out.println(f.getTotalSpace()); System.out.println(f.getUsableSpace()); String a[]=f.list(); for(int i=0;i<a.length;i++) System.out.println(a[i]); System.out.println(f.exists()); }
}code