static void removeLast(L l) { if (!l.isEmpty()) l.remove(l(l)-1); } static void removeLast(L l, int n) { removeSubList(l, l(l)-n, l(l)); }