我可以用一种标准方法代替这种自定义方法吗?
public static Byte[] box(byte[] byteArray) {
Byte[] box = new Byte[byteArray.length];
for (int i = 0; i < box.length; i++) {
box[i] = byteArray[i];
}
return box;
}
Run Code Online (Sandbox Code Playgroud)