Created
February 14, 2016 12:25
-
-
Save dangnhdev/8010a2e8e36dbbac7937 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
Path path01 = Paths.get("/rafaelnadal/tournaments/2009/BNP.txt"); | |
Path path02 = Paths.get("C:/rafaelnadal/tournaments/2009/BNP.txt"); | |
if(path01.equals(path02)){ | |
System.out.println("The paths are equal!"); | |
} else { | |
System.out.println("The paths are not equal!"); //true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment