[JAVA] java.util.arrays
1. 고전적인 System.arraycopy Java에서 각종 array를 복사하는 경우에 사용되었던 방식이다.입력받을 값에 미리 초기화해 놓아야 한다. int[] array = new int[] { 1, 2, 3, 4 };int[] copy = new int[4];System.arraycopy(array, 0, copy, 0, 4); 그리고 source와 destination의 시작위치를 지정할 수 있지만,경험상 잘 사용할 필요가 거의 없었다 2. 새로운 java.util.Arrays.copyOf (JDK6) int[] array = new int[] { 1, 2, 3, 4 };int[] copy = Arrays.copyOf(array, array.length);int[] other = Arrays.c..