is that normal that I have the same hashcode for both ?? I'm confuse. I thought the hashcode was unique.
public static void main(String[] args) {
HashMap<String, Integer> t = new HashMap<String, Integer>();
t.put("one", 123);
t.put("two", 123);
System.out.println(t.get("one").hashCode());
System.out.println(t.get("two").hashCode());
}
output
123
123