// "Replace the loop with 'Collection.removeIf'" "false" import java.util.*; public class Main { static List select(Collection input) { List result = new LinkedList<>(input); for (Iterator iterator = result.iterator(); iterator.hasNext(); ) { Integer left = iterator.next(); if (result.stream().noneMatch(right -> right == left * 2)) { iterator.remove(); } } return result; } }