Last active
January 30, 2022 16:29
-
-
Save luisoos/23288b77d9a316f115bce7d33f6262d9 to your computer and use it in GitHub Desktop.
Simple Hash in Java
This file contains 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
// These arrays will have the same hash-code. | |
String[] example1 = {"a", "b", "c"}; // Hash: 126145 | |
String[] example2 = {"a", "b", "c"}; // Hash: 126145 | |
// These arrays will NOT have the same hash-code. | |
String[] example1 = {"a", "b", "c"}; // Hash: 126145 | |
String[] example2 = {"aa", "b", "c"}; // Hash: 3015872 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment