sS charactersToString(L l) { if (l == null) null; int n = l.size(); char[] array = new[n]; for i to n: array[i] = l.get(i); ret new S(array); }