Added Java code for solution Hamming Programming Assignment