static int lastIndexOfStartingWith(L l, S s) { for (int i = l(l)-1; i >= 0; i--) if (startsWith(l.get(i), s)) ret i; ret -1; }