Write a method public static clearAllDirectories(Path dir) that removes all files and all subdirectories from a directory.

Question:

Write a method public static clearAllDirectories(Path dir) that removes all files and all subdirectories from a directory. Be very careful when testing it!

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: