(String s)
| 392 | } |
| 393 | |
| 394 | public boolean startsWith(String s) { |
| 395 | if (length >= s.length) { |
| 396 | return substring(0, s.length).compareTo(s) == 0; |
| 397 | } else { |
| 398 | return false; |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | public boolean startsWith(String s, int start) { |
| 403 | if (length >= s.length + start) { |
no test coverage detected