Hamming Code added

I have added the implementation of Hamming Code algorithm in Java.