for 루프보다 System.arraycopy (…)를 사용하는 것이 더 낫 오류입니까?
for 루프보다 System.arraycopy (…)를 사용하는 것이 더 낫 오류입니까? 두 개의 작은 배열을 결합하는 새로운 배열을 만들고 싶습니다. null 일 수 없지만 크기는 0 일 수 있습니다. 이 두 가지 방법 중 하나를 선택할 수 없습니다. 동등하거나 하나 더 발견입니까 (예 : system.arraycopy () 전체 청크 복사)? MyObject[] things = new MyObject[publicThings.length+privateThings.length]; System.arraycopy(publicThings, 0, things, 0, publicThings.length); System.arraycopy(privateThings, 0, things, publicThings.leng..