最后一分了
public class ByteTest {
public static void main(String[] args) {
byte[] a={'a','b','c'};
byte[] b={'1','2','3'};
byte[] c=(new String(a)+ new String(b)).getBytes() ;
for (int i=0; i<c.length; i++){
System.out.println((char)c[i]);
}
}
}
为什么
加(char)和不加会有不同的结果出现呢