[Android] ArrayList에서의 clear()와 removeAll() 차이점 [Android] ArrayList에서의 clear()와 removeAll() 차이점 ArrayList에 있는 내용을 삭제할때 쓰이는 clear()와 removeAll().. -----------------------------------clear() - source @Override public void clear() { if (size != 0) { Arrays.fill(array, 0, size, null); size = 0; modCount++; } }-----------------------------------removeAll() - source public boolean removeAll(Collection collection) { boolean result = false; Iterator .. 더보기 이전 1 ··· 4 5 6 7 8 9 10 ··· 92 다음