String类型转化byte[]
String s1 = "abc123中国";
byte[] bytes = s1.getBytes();
byte[]转换为String
String s2 = new String(bytes);
String和byte[]之间的相互转换
最新推荐文章于 2023-12-26 18:08:41 发布
String类型转化byte[]
String s1 = "abc123中国";
byte[] bytes = s1.getBytes();
byte[]转换为String
String s2 = new String(bytes);