import java.util.HashMap;


class Mar10 {
	public static void main(String[] args) {

		HashMap<String, Integer> table = new HashMap<>();

		// Add (key,value) pairs to table
		table.put("joe", 1050);
		table.put("alice", 50);
		table.put("jim", 3000);

		// overwriting the value associated with "joe"
		table.put("joe", 7000);

		// Retrieve value associated with a key

		Integer val = table.get("joe");
		System.out.println("value associated with joe: " + val);

		val = table.get("smitty");
		System.out.println("value associated with smitty: " + val);
	
		String s1 = "joe";
		String s2 = "alice";
		String s3 = "jim";
		String s4 = "jim";

		System.out.println("s1 hashCode: " + s1.hashCode());		
		System.out.println("s2 hashCode: " + s2.hashCode());		
		System.out.println("s3 hashCode: " + s3.hashCode());		
		System.out.println("s4 hashCode: " + s4.hashCode());		
		

	}
}
