question: public static boolean isCharAtEqual ( String string , int index , char charToCompare ) { if ( ( index < 0 ) || ( index >= string . length ( ) ) ) { return false ; } return string . charAt ( index ) == charToCompare ; }
target:  Safely compares provided char with char on given location.