Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
15
Task/Delete-a-file/Java/delete-a-file-2.java
Normal file
15
Task/Delete-a-file/Java/delete-a-file-2.java
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public final class DeleteAFile {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
Files.delete(Path.of("output.txt"));
|
||||
Files.delete(Path.of("docs"));
|
||||
|
||||
Files.delete(Path.of("/output.txt"));
|
||||
Files.delete(Path.of("/docs"));
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue