Created
April 28, 2022 16:59
-
-
Save edwingustafson/91d53a7a5d6312577e24a81fbe15476f to your computer and use it in GitHub Desktop.
Java URL equality
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
| jshell> var s = new URL("https://www.caymanchem.com/") | |
| s ==> https://www.caymanchem.com/ | |
| jshell> var t = new URL("https://www.caymanpharma.com/") | |
| t ==> https://www.caymanpharma.com/ | |
| jshell> s.equals(t) | |
| $3 ==> true | |
| As seen on https://twitter.com/tnurkiewicz/status/1519643900423688192 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment