Question: Write a program that prompts the user to enter a directory name and creates a directory using the Files mkdirs method. The program displays the
Write a program that prompts the user to enter a directory name and creates a directory using the File’s mkdirs method. The program displays the message “Directory created successfully” if a directory is created or “Directory already exists” if the directory already exists.
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
Program plan Import the required packages into the program Create a class Exercise 1426 to create a ... View full answer
Get step-by-step solutions from verified subject matter experts
