title: java: converting binary to text?
body: <p>I wrote this code for converting binary to text . </p>
  
  <pre><code>public static void main(String args[]) throws IOException{
  
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter a binary value:");
        String h = b.readLine();
        int k = Integer.parseInt(h,2);  
        String out = new Character((char)k).toString();
        System.out.println("string: " + out);
        } 
  }
  </code></pre>
  
  <p>and look at the output !</p>
  
  <pre><code>Enter a binary value:
  0011000100110000
  string: ?
  </code></pre>
  
  <p>what's the problem?</p>