Delete a file: Difference between revisions
Content added Content deleted
Line 590: | Line 590: | ||
return exists; |
return exists; |
||
} |
} |
||
public static void test(String type, String filename) { |
public static void test(String type, String filename) { |
||
System.out.println("The following " + type + " called " + filename + |
System.out.println("The following " + type + " called " + filename + |
||
Line 595: | Line 596: | ||
); |
); |
||
} |
} |
||
public static void main(String args[]) { |
public static void main(String args[]) { |
||
test("file", "input.txt"); |
test("file", "input.txt"); |