📜  java 将字节转换为字符串 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:10.640000             🧑  作者: Mango

代码示例1
byte[] bytes = "hello".getBytes();
String s = new String(bytes, StandardCharsets.UTF_8);