Question: Create Java program that can do: User menu: To get a list of all file/directory names from the given. To get specific files by extensions

Create Java program that can do:

User menu:

To get a list of all file/directory names from the given.

To get specific files by extensions from a specified folder.

To check if a file or directory specified by pathname exists or not.

To check if a file or directory has read and write permission.

To check if given pathname is a directory or a file.

To compare two files lexicographically.

To get last modified time of a file.

To get file size in bytes, kb, mb.

To read contents from a file into byte array.

To read a file content line by line.

To write and read a plain text file.

After completed subtask user can go back to menu.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!