遅かったか。追加機能は実装していないやつだけど、せっかく作ったので。
import java.io.*;

public class FileException {
private static final String PATH = "files";
public static void main(String[] args) {
if(args.length != 1) {
System.out.println("usage : java FileException List | filename");
return;
}
try {
if(args[0].equals("List")) {
try {
displayFiles();
} catch(FileNotFoundException e) {
System.out.println("wrong directory.");
}
} else {
try {
displayFile(args[0]);
} catch(FileNotFoundException e) {
System.out.println(args[0] + " does not exist.");
}
}
} catch(IOException e) {
e.printStackTrace();
}
}