This example shows how to do it:
String stringToConvert = "This String is 76 characters long and will be converted to an array of bytes"; byte[] theByteArray = stringToConvert.getBytes();
No comments:
Post a Comment