Created
September 20, 2017 13:16
-
-
Save jonpryor/10bfd5770c3e98143eaae04866cd1011 to your computer and use it in GitHub Desktop.
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
// array hash | |
class ah { | |
public static void main (String[] args) { | |
int[] a = new int []{1,2,3}; | |
int[] b = new int []{1,2,3}; | |
System.out.println ("a hash: " + a.hashCode()); | |
System.out.println ("b hash: " + b.hashCode()); | |
} | |
} |
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
$ java ah | |
a hash: 2018699554 | |
b hash: 1311053135 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment