반응형
SMALL
다음과 같이 빈 문자열을 제거 할 수 있습니다.
List<String> list = new ArrayList<String>(Arrays.asList("", "Hi", null, "How"));
System.out.println(list);
list.removeAll(Arrays.asList("", null));
System.out.println(list);
Output:
[, Hi, null, How]
[Hi, How]
반응형
LIST
'android' 카테고리의 다른 글
Exo-Player 자세히 알아보기(파트 V): 오프라인 다운로드 작동 방식 (4) | 2024.10.11 |
---|---|
안드로이드 리스트뷰에 버튼 넣기. (Android ListView with Button) (0) | 2024.10.10 |
Kotlin의 목록에서 null 및 빈 값 제거 (1) | 2024.10.10 |
[JAVA] Java의 String Empty 와 Blank 체크하기 (0) | 2024.10.10 |
ExpandableList에서 버튼을 클릭할 수 없습니다. (0) | 2024.10.10 |