the following code is the code to convert string into byte[]
byte[] feedback;
feedback = "Your answer is correct and submit on time".getBytes();
but i found that the byte[] is containing a series of numbers, how do i convert back to string "Your answer is correct and submit on time"?
thanks
numbersyou see is byte/ASCII code.Stringclass!!!Stringhas several constructor and methods for this goals. You could find your answer by readingStringJavaDocs.