package javaapplication1;
import java.io.File;
import java.io.IOException;
public class JavaApplication1 {
public static void main(String[] args) throws IOException {
File file1 = new File("d://data.txt");
File file2 = new File("d://three_letters_combination.txt");
if (file1.compareTo(file2) == 0) {
System.out.println("Paths are same");
} else {
System.out.println("Paths are not same");
}
}
}
/*
run:
Paths are not same
*/