void (String[] array, List<Integer> list) { boolean found = false; for(int i = 0; i < 10; i++) { String s = array[i]; int len = list.get(i); len++; <warning descr="Loop can be terminated after condition is met">if</warning>(s.length() == len) { found = true; } } }