question: private static int indexOf ( final String s , final char searchChar , final int beginIndex , final int endIndex ) { for ( int i = beginIndex ; i < endIndex ; i ++ ) { if ( s . charAt ( i ) == searchChar ) { return i ; } } return - 1 ; }
target:  Returns the index within the specified string of the first occurrence of the specified search character.