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