diff --git a/app/src/main/java/waldrapps/plannit/Supplementary Java files/ComparePaths b/app/src/main/java/waldrapps/plannit/Supplementary Java files/ComparePaths new file mode 100644 index 0000000..9c20fab --- /dev/null +++ b/app/src/main/java/waldrapps/plannit/Supplementary Java files/ComparePaths @@ -0,0 +1,14 @@ +import java.io.File; + +public class Main { + public static void main(String[] args) { + File file1 = new File("C:/File/demo1.txt"); + File file2 = new File("C:/java/demo1.txt"); + + if(file1.compareTo(file2) == 0) { + System.out.println("Both paths are same!"); + } else { + System.out.println("Paths are not same!"); + } + } +} \ No newline at end of file