blob: 66cb2b4174097d22a96e0f98c6f6785607d2f7d2 [file]
// "Replace the loop with Collection.removeIf" "true"
import java.util.*;
public class Main {
public void removeEmpty(List<String> list) throws Exception {
// remove empty
// everything is ok!
list.removeIf(str -> str.trim()/*trimmed empty*/
.isEmpty());
}
}