blob: d36966194280caebb8c366f48d63c83973cdb2e2 [file]
// "Replace 'collect(counting())' with 'count()'" "true"
import java.util.List;
import java.util.stream.Collectors;
public class Main {
public long count(List<String> data) {
return data.stream().filter(x -> x.startsWith("xyz")).count();
}
}