title: How do I print the binary representation of the first character in a string
body: <p>i want to retrieve the binary values of the data in the file. so i have written the following the code:</p>
  
  <pre><code>while ((fileData = br.readLine()) != null) {
    byte b[] = fileData.getBytes("UTF-8");
    BigInteger bi = new BigInteger(b);
    String s = bi.toString(2);
    System.out.println("Original message in binary: " + s);
    System.out.println("Original message length: " + s.length());
  }
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>abca (this is the data in a text file)
  Original message in binary: &lt;here&gt;1100001011000100110001101100001
  Original message length: 31
  </code></pre>
  
  <p>Everything is fine but while i am printing the data in binary format i am not able to print the first bit (<code>&lt;here&gt;</code>) can anyone help me?</p>