第1个回答 2012-03-18
String s = new String(new byte[] { 1, 2, 3 });
byte[] b = s.getBytes();本回答被提问者和网友采纳
第2个回答 2018-11-21
结合base64可以轻松搞定,只是encode和decode有点耗时
String temp = Base64.encodeToString(data,Base64.DEFAULT);
data = Base64.decode(temp,Base64.DEFAULT);
第3个回答 2012-03-19
String str="so easy";
byet[] buff= str.getByet();
String newstr=new String(buff);
第4个回答 2012-03-19
String s="";
byte[] tempB=s.getBytes();
s=new String(tempB);