// "Replace loop with 'Collection.removeIf()'" "true"
import java.util.*;

public class Main {
    public void removeEmpty(List<String> list) throws Exception {
        /*here's list*/
        // iterate over list
        // if it's empty
        /* remove! */
        /*empty?*/
        list.removeIf(String::isEmpty);
    }
}