近期在做项目时,遇到以下问题。先看代码:
package test11;
public class TestStr {
public static void main(String[] args) throws Exception {
byte[] bytE = new byte[]{24, -122, 61, 102, -51, -78, 17, 126};
String str2 = new String(bytE);
byte[] bytE2 = str2.getBytes();
for(byte b:bytE2){
System.out.print(b + ",");
}
}
}
package test11;
public clas