Add java hamming

Add hamming exercise into java assignment