Below are revisions for this snippet.
Encoding a character into HammingCode in Java
First of all it is very necessary to know what hammingcode is. my program will convert any char to ASCII(Binary) and then convert it into CheckBits(HammingCode). to compile this program type javac printBits2.java and then java printBits2 H( or any other char you would like to convert). i know i had alot of hard time figuring but java forums help me out alot.






