一个字节数组的赋值问题?Thankbyte[0]一个值 byte[1]一个值 byte[2]和byte[3]中要存一个值 怎样这一个值存到数组的2个下标中呢?[解决办法]参考下面: String a = "测 "; byte[] b = a.getBytes(); for(int i = 0 ; i < b.length;i++){ byte[2+i] = b[i]; }