static L allIndexes(S s, char c) { new L l; int n = l(s); if (s != null) for i to n: if (s.charAt(i) == c) l.add(i); ret l; }