Write binary string
Sorry, i am not good in english.
I want to ask to all of you. Assume i have string 11001100. I want to write that string with exact bit. So, my file will be 1 byte not 8 byte (because each char will give 8 bit). How i can do that?
Sorry if u dont understand what i mean >.<
Thank you before :D
Re: Write binary string
The Integer class has a parse method that will convert a String to an int value. For a String with binary digits, use a radix of 2.
Also look at the Byte class's parse method.