Skip to content

Instantly share code, notes, and snippets.

@PadraicODonoghue
Created November 30, 2014 16:08
Show Gist options
  • Select an option

  • Save PadraicODonoghue/fc908cecd4802afa7f87 to your computer and use it in GitHub Desktop.

Select an option

Save PadraicODonoghue/fc908cecd4802afa7f87 to your computer and use it in GitHub Desktop.
public class Lisa {
public static void main(String[] args) {
String binString = "0101001101000001010100000010000001010000011011000110000101100011011001010110110101100101011011100111010000100000011100000111001001101111011001110111001001100001011011010110110101101001011011100110011100100000011000110110100001100001011011000110110001100101011011100110011101100101001000000011001000110000001100010011010000101110000010100101010001101000011001010010000001110011011011110110110001110101011101000110100101101111011011100010000001101001011100110011101000100000001000100101000001100001011100100110000101100100011011110111100001101001011000110110000101101100001000000101000001110010011011110110011101110010011000010110110101101101011001010111001000100010000010100101010101110011011001010010000001110100011010000110010100100000011100110110111101101100011101010111010001101001011011110110111000100000011000010111001100100000011101000110100001100101001000000111001101110101011000100110101001100101011000110111010000100000011011000110100101101110011001010010000001101001011011100010000001111001011011110111010101110010001000000110010101101101011000010110100101101100001011000010000001100001011011100110010000100000011001000110111101101110001001110111010000100000011001100110111101110010011001110110010101110100001000000111010001101111001000000110000101110100011101000110000101100011011010000010000001111001011011110111010101110010001000000100001101010110001000000110000101101110011001000010000001100011011011110110010001100101001011100000101001000011011011110110111001100111011100100110000101110100011101010110110001100001011101000110100101101111011011100111001100100001";
String charString = "";
char nextChar;
for(int i = 0; i < binString.length() - 7; i += 8)
{
nextChar = (char)Integer.parseInt(binString.substring(i, i+8), 2);
charString += nextChar;
}
System.out.println(charString);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment