import java.io.*; class FileAttr { public static void FileAttributes(String filename) throws Throwable { File f = new File(filename); System.out.print(filename); if (f.exists()) System.out.print(" exists"); if (f.isDirectory()) System.out.print(" directory"); if (f.isFile()) System.out.print(" file"); if (f.isHidden()) System.out.print(" hidden"); System.out.println(); } public static void main(String[] args) throws Throwable { for ( int idx = 0 ; idx < args.length ; idx++ ) { FileAttributes(args[idx]); /* for (String fn : args) { FileAttributes(fn); */ } } }