sbool isAllDigits(S s) { int n = l(s); for i to n: if (!isDigit(s.charAt(i))) false; true; }