(
final String string, final char[] needles, final int start)
| 217 | } |
| 218 | |
| 219 | public static int indexOf( |
| 220 | final String string, final char[] needles, final int start) { |
| 221 | |
| 222 | char ch; |
| 223 | for (int i = start; i < string.length(); i++) { |
| 224 | ch = string.charAt(i); |
| 225 | for (int j = 0; j < needles.length; j++) { |
| 226 | if (needles[j] == ch) { |
| 227 | return i; |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | return -1; |
| 233 | } |
| 234 | } |
no test coverage detected