Hello all. I'm fairly new to
Java but I'm a long time programmer in other languages. (which might be my problem here)
the question I have is: if there is an ASCII
string embedded inside of a binary byte array, what is the easiest/correct way to get it out?
for example:
byte[] byteArray = new byte[] {0,1,2,3,4,77,121,32,83,84,82,73,78,71,13,10}// string "My String<CR><LF>" starting at byte 5
String myEmbeddedString = byteArray[5]; // I want the whole string not just the first byte.
is the correct way to just put it in a loop and get each byte one at a time?