mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
9 lines
253 B
Java
9 lines
253 B
Java
// "Replace the loop with 'Collection.removeIf'" "true"
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void removeEmpty(List<String> list) throws Exception {
|
|
// Presumably CopyOnWriteArrayList
|
|
list.removeIf(String::isEmpty);
|
|
}
|
|
} |