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
I tried this one ..
public String toBinaryString(String s) { char[] cArray=s.toCharArray(); StringBuilder sb=new StringBuilder(); for(char c:cArray) { String cBinaryString=Integer.toBinaryString((int)c); sb.append(cBinaryString); } return sb.toString(); }