Nov
2nd
Tue
2nd
int h1 = “0-42L”.hashCode();
int h2 = “0-43-“.hashCode();
System.out.println(“h1 = ” + h1);
System.out.println(“h2 = ” + h2);
int h2 = “0-43-“.hashCode();
System.out.println(“h1 = ” + h1);
System.out.println(“h2 = ” + h2);
—
h1 = 45721201
h2 = 45721201
les hashcode ne sont pas uniques pour toutes les String :-(
Comments (View)


