Skip to content

Instantly share code, notes, and snippets.

@jonpryor jonpryor/ah.java
Created Sep 20, 2017

Embed
What would you like to do?
// 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());
}
}
$ 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
You can’t perform that action at this time.