4장 실습문제1 [명품자바프로그래밍] 4장 실습문제(2) 4. 다음 두 개의 static 가진 ArrayUtility2 클래스를 만들어보자. ArrayUtility2 클래스를 이용하는 테스트용 프로그램도 함께 작성하라. static int [] concat(int [] s1, int [] s2); // s1과 s2를 연결한 새로운 배열 리턴 static int [] remove(int [] s1, int [] s2); // s1에서 s2 배열의 숫자를 모두 삭제한 새로운 배열 리턴 Chapter4_4.java class ArrayUtility2{ //s1과 s2를 연결한 새로운 배열 리턴 static int[] concat(int[] s1, int[] s2){ int arrayTmp[] = new int[s1.length+s2.length]; for(int i.. 2017. 8. 9. 이전 1 다음 반응형