How would you convert a given character into a string into the corresponding binary value?
public void send(DataFrame frame) {
String bitString = frame.toString();
for (int a = 0; a < bitString.length(); a++) {
char c = bitString.charAt(a);
????
}
}
where the frame is defined as a byte array (as byte [] in the DataFrame class
source
share