0

as the title specfies I'm trying to convert a byte array to string. with no luck. say my byte array is: [11,20,9].

(I've entered: array[0] = 11; array[1] = 20;...)
String str;
str = array.toString(); // prints: [B@4554617c

When I try using str = new String(array) I get some weird symbols.

Any you of familiar with a method for this case? thanks.

Jayn
  • 45
  • 1
  • 3
  • 10

0 Answers0