@@ -0,0 +1,497 @@
+import java.util.*;%0A%0Apublic class UseOfNonHashableClassInHashDataStructure %7B%0A%0A%09static HashMap%3CUseOfNonHashableClassInHashDataStructure, String%3E m = new HashMap%3CUseOfNonHashableClassInHashDataStructure, String%3E();%0A%0A%09public boolean equals(Object o) %7B%0A%09%09return hashCode() == o.hashCode();%0A%09%7D%0A%0A%09public static String add(UseOfNonHashableClassInHashDataStructure b,%0A%09%09%09String s) %7B%0A%09%09return m.put(b, s);%0A%09%7D%0A%0A%09public static String get(UseOfNonHashableClassInHashDataStructure b) %7B%0A%09%09return m.get(b);%0A%09%7D%0A%7D%0A

Add test case for use of non hashable class in hash data structure