// "Replace with findFirst()" "true" import java.util.List; public class Main { public int testPrimitiveMap(List data) { for(String str : data) { if(str.startsWith("xyz")) { int len = str.length(); if(len > 10) { return len; } } } return 0; } }