[JAVA] Generic int 배열인 ArrayList의 중복제거
int 배열의 중복제거는 여기로 => [JAVA] int 배열의 중복제거 (http://blog.naver.com/bb_/221337104683)
Generic int 배열인 ArrayList의 중복제거 코드.
흔하게 필요하지는 않겠지만, 유사시 사용하기 위해 만들었다.
수행 결과는 다음과 같다.
|
before : 1,2,3,4,5,1,2,3,4,5 |
|
public static void main(String[] args) { public static String convertToString(ArrayList<int[]> inputList) { public static String convertToString(int[] inputArray, String delimiter) { public static ArrayList<int[]> removeDuplication(ArrayList<int[]> inputList) { public static boolean equals(int[] arr1, int[] arr2) { |