Re: decode binary to characters

Quote:

How it would take 8 bits (or 16 bits) at a time

Is the input a String of "0" and "1" characters representing bits? The substring() method can get the characters in any sized String that you want. Then the Integer class has methods for converting Strings to numbers.

How to convert Binary to Character

What would be the algorithm to convert Base 2 to their actual characters?

Example: Input Base 2 : 01001001001000000110110001101001011010110110010100 10000001001010010000010101011001000001

Output : I like JAVA

How it would take 8 bits (or 16 bits) at a time and convert it to corresponding character?

Thanks!

Re: decode binary to characters

Why post the this 3 times?