Created
February 14, 2016 12:28
-
-
Save dangnhdev/2e724ebd6c36c6e587ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
boolean check = Files.isSameFile(path01, path02); | |
if(check){ | |
System.out.println("The paths locate the same file!"); //true | |
} else { | |
System.out.println("The paths does not locate the same file!"); | |
} | |
} catch (IOException e) { | |
System.out.println(e.getMessage()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment