convert byte java code example
Example 1: java convert bytes to string
byte[] bytes = "hello".getBytes();
String s = new String(bytes, StandardCharsets.UTF_8);
Example 2: String by byte array in java
String str = "Example String";
byte[] b = str.getBytes();