Do you know the problem as to why i am not getting Hello
byte f [] ="hello".getBytes();
System.out.println(f.toString());
Because byte[]#toString()
is (usually) not implemented as new String(byteArray)
, which would lead to the result you expect (e.g. System.out.println(new String(byteArray));
.
You may want to give this page an eye...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With