String 배열 중복제거
Array.asList를 이용하여 간단하게 중복 제거 1234567891011121314151617String[] test = {"1","2","3","1","2"};System.out.println("before length=" + test.length); test = new HashSet(Arrays.asList(test)).toArray(new String[0]);System.out.println("after length=" + test.length); for(String s:test){ System.out.println(s); } /* result before length=5after length=3123*/Colored by Color Scriptercs how to remove duplicat..