Answers for "how to convert string to byte array in java"

4

convert string to byte java

String example = "Convert Java String";
  byte[] bytes = example.getBytes();
Posted by: Guest on April-23-2020
3

go string to byte array

b := []byte("ABC€")
s := string([]byte{65, 66, 67, 226, 130, 172})
Posted by: Guest on February-17-2020
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 "how to convert string to byte array in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language