I have the following scenario:
URL u1 = new URL(\"http://www.yahoo.com/\"); URL u2 = new URL(\"http://www.yahoo.com\"); if (u1.equals(u2)) { System.out.prin
You can always compare relative URLs with Path.equals-method
ex.
Paths.get("/user/login").equals(Paths.get("/user/login/")))
produce true
You can also use startsWith/endsWith-methods