Notice
Recent Posts
Recent Comments
반응형
목록2017/02/10 (1)
오늘도 공부
java list 안전하게 제거
List list = new ArrayList(); Iterator iterator = list.iterator(); // while (iterator.hasNext()) { for (Iterator iterator = list.iterator(); iterator.hasNext();) { String string = iterator.next(); if (string.isEmpty()) { // Remove the current element from the iterator and the list. iterator.remove(); } }
자바/자바팁
2017. 2. 10. 19:38
