Returns the index within this string of the first occurrence of the specified character. If a character with value ch occurs in the character sequence represented by this String object, then the index of the first such occurrence is returned -- that is, the smallest value such that: this.charAt( ) =
(int ch)
| 348 | * ) == ch is true. If no such character occurs in this string, then -1 is returned. |
| 349 | */ |
| 350 | public int indexOf(int ch){ |
| 351 | return indexOf(ch, 0); |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index. |
no outgoing calls