Here you can find the source of BinaryToAscii(String binary)
public static String BinaryToAscii(String binary)
//package com.java2s; //License from project: Open Source License public class Main { public static String BinaryToAscii(String binary) { // Convert binary string into ASCII. String output = ""; for (int i = 0; i <= binary.length() - 8; i += 8) { int k = Integer.parseInt(binary.substring(i, i + 8), 2); output += (char) k; }/*from w ww. ja v a 2 s.co m*/ return output.toLowerCase().trim(); } }