Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an application that determines whether the first two files are located in the same folder as the third one. If the files are
Write an application that determines whether the first two files are located in the same folder as the third one. If the files are in the same folder display All files are in the same Comparefolders.java TestData1.txt TestData2txt 1 impart java.nio. file.; import java.1io.I0Exception; folder, otherwise display Files are not in the same folder. 3 public class Conparefolders { Test the progam when the files are in the same folder and when they are not. public static vold nain(String l args) ( Path filel = Paths.get("/root/sandbax/TestDatal.txt"): Path fitez Paths.get("/root/sandbox/TestData2.txt"): Path files Paths.get("/root/sandbox/test/TestData).txt"): /Write your code here Instructions CompareFolders.java TestData1.txt 1 Test data one. 2. Write an application that determines whether the first two files are located in the same folder as the third one. 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. Instructions CompareFoldersjava TestData1.txt TestData2.txt 1 Test data two. 2 Write an application that determines whether the first two files are located in the same folder as the third one. 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
JAVA PROGRAM import javaio import javautil class Folder main fu...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