1.String转换成byte
String str = “hello”;
byte[] strs = str.getBytes("UTF8");
2.byte转换成Sring
byte[] bytes ;
String str = new String(bytes, "UTF8");
1.String转换成byte
String str = “hello”;
byte[] strs = str.getBytes("UTF8");
2.byte转换成Sring
byte[] bytes ;
String str = new String(bytes, "UTF8");