Day

August 12, 2014
Damn you, Java! If you want to use a hash-based (particularly a HashSet or HashMap) structure with a custom object, the class to be hashed needs to override 2 methods: public int hashCode(); and public boolean equals(Object o);. This has been explained time and time again on StackOverflow. But I just want to complain a...
Read More