static int indexOfNotStartingWith(L l, S s) { ret indexOfNotStartingWith(l, s, 0); } static int indexOfNotStartingWith(L l, S s, int i) { for (; i < l(l); i++) if (!startsWith(l.get(i), s)) ret i; ret -1; }