, getByte(), Integer.toBinaryString(byte). .
: ~ , Integer.toBinaryString(byte) int ( .), ( .)
: ~
, parse char char, char ascii .
int tempChar = (int)ch;
.
Integer.toString(tempChar,2);
.
string finalString = "";
for(int i = 0;i<myStr.length;i++){
int tempChar = (int)ch;
finalString = finalString + Integer.toString(tempChar,2);
}
System.out.println("Your byte String is"+finalString);