title: How to convert a string to a stream of bits in java
body: <p>How to convert a string to a stream of bits zeroes and ones
  what i did i take a string then convert it to an array of char then i used method 
  called forDigit(char,int) ,but it does not give me the character as a stream of 0 and 1
  could you help please.
  also how could i do the reverse from bit to a char. pleaes show me a sample</p>