nite array to string code example
Example 1: String by byte array in java
String str = "Example String";
byte[] b = str.getBytes();
Example 2: convert byte array to string
byte[] byteArray1 = { 80, 65, 78, 75, 65, 74 };
String str = new String(byteArray1, 0, 3, StandardCharsets.UTF_8);