Returns a string of all 'a' of length LEN.
(int len)
| 65 | |
| 66 | /** Returns a string of all 'a' of length LEN. */ |
| 67 | private static String allAs(int len) { |
| 68 | StringBuilder sb = new StringBuilder(); |
| 69 | for (int i = 0; i < len; i++) { |
| 70 | sb.append('a'); |
| 71 | } |
| 72 | return sb.toString(); |
| 73 | } |
| 74 | |
| 75 | /** Returns true if S is all 'z'. False for empty strings */ |
| 76 | public static boolean isAllzs(String s) { |