Java tutorial
//package com.java2s; import java.io.File; public class Main { private static boolean isEqualPath(File file1, File file2) { return file1.getAbsolutePath().equals(file2.getAbsolutePath()); } }