Answered step by step
Verified Expert Solution
Question
1 Approved Answer
* * * PLEASE PROVIDE SCREENSHOT OF OUTPUT * * Path for file 1 is C: Java Chapter 1 3 TestData 1
PLEASE PROVIDE SCREENSHOT OF OUTPUTPath for file is C:Java ChapterTestDatatxt Path for file is C:JavaChapterTestDatatxt Path for file is C:Java ChapterTestDatatxt All files are in the same folder
Write an application that determines whether the first two files are in dthe same folder as the third one. The program should prompt the user to provide file paths. If the files are in the same folder display All files are in the same folder, otherwise display Files are not in the same folder.
Test the program when the files are in the same folder and when they are not.
Sample Output:
Starter Code:
import java.nio.file.;
import java.ioIOException;
public class CompareFolders
public static void mainString args
Write your code here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started