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 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.