Question: Java Code Only. Thanks 1. java program using boolean operator or if else statement 2. java program 1. Write a program that creates the following

Java Code Only. Thanks

1. java program using boolean operator or if else statement

2. java program

Java Code Only. Thanks 1. java program using boolean operator or if

1. Write a program that creates the following directories and file in its working folder: lab6b/challengel/subfolder/test. txt Make the file readable but not writable and not executable 2. Write a program that takes as the input name/path of a directory and prints all files in the directory with the following information about each file. If the directory/folder does not exist or is not a directory/folder the print an appropriate error: a. File name b. Whether the file is a directory c. Whether the file is readable/writable/executable Also, list how many files are in the directory. Example: 1 - foobar (directory), readable, writable, not-executable 2 - yello.color (file), readable, not-writable, executable 3 - simplefile.dat(file), readable, writable, executable Total files: 3

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!