Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Path path01 = Paths.get("/rafaelnadal/tournaments/2009/BNP.txt");
  2. Path path02 = Paths.get("C:/rafaelnadal/tournaments/2009/BNP.txt");
  3. if(path01.equals(path02)){
  4. System.out.println("The paths are equal!");
  5. } else {
  6. System.out.println("The paths are not equal!"); //true
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement