26 February 2014

An effective way of overriding hashCode() in Java

HashCodeBuilder
This class enables a good hashCode method to be built for any class. It follows the rules laid out in the book Effective Java by Joshua Bloch. 
Shall I say any more? This is from Apache Commons. It is using the Builder Design Pattern.

Comparison between Apache Commons and Guava implementation of HashCodeBuilder can be a good follow up reading material.

7 February 2014

Find your Voicemail number on your iPhone

If you ever wonder how you can find your voicemail number on your iPhone, there is an easy way of doing it. Just go to the dialler and typ*#5005*86# and hit call. I am not sure if it applies to all handsets out there, it won't hurt if you give it a try on your non Apple handset though!