()
| 268 | } |
| 269 | |
| 270 | public String toUpperCase() { |
| 271 | for (int j = 0; j < length; ++j) { |
| 272 | char ch = charAt(j); |
| 273 | if (Character.toUpperCase(ch) != ch) { |
| 274 | char[] b = new char[length]; |
| 275 | for (int i = 0; i < length; ++i) { |
| 276 | b[i] = Character.toUpperCase(charAt(i)); |
| 277 | } |
| 278 | return new String(b, 0, length, false); |
| 279 | } |
| 280 | } |
| 281 | return this; |
| 282 | } |
| 283 | |
| 284 | public int indexOf(int c) { |
| 285 | return indexOf(c, 0); |
no test coverage detected