Answers for "java string as byte array"

1

String by byte array in java

String str = "Example String";
 byte[] b = str.getBytes();
Posted by: Guest on September-09-2020
1

java string from byte array

String s = new String(bytes, StandardCharsets.UTF_8);
Posted by: Guest on June-10-2021

Code answers related to "java string as byte array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language