[Java] System.arraycopy 사용법 (배열 복사)
System.arraycopy 사용법 (배열 복사) System.arraycopy( Object src, int srcPos, Object dest, int destPos, int length ) Object src: Ctrl+C 할 곳 (복사하려는 원본) int srcPos: Object src의 몇 번째 인덱스부터 복사할 것인지 Object dest: Ctrl+V 할 곳 (붙여넣기하려는 대상) int destPos: Object dest의 몇 번째 인덱스부터 붙여넣기할 것인지 int length: Object src에서 몇 개를 복사할 것인지 1 2 3 4 5 6 7 8 9 int[] arr1 = {10, 20, 30, 40, 50}; int[] arr2 = {1, 2, 3, 4, 5}; System..