mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
9 lines
239 B
Java
9 lines
239 B
Java
// "Replace the loop with 'Collection.removeIf'" "true"
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void removeEmpty(List<String> list) throws Exception {
|
|
// Copy to avoid CME
|
|
list.removeIf(String::isEmpty);
|
|
}
|
|
} |