question: public static boolean endsWithChar ( String s , char c ) { if ( s . length ( ) == 0 ) { return false ; } return s . charAt ( s . length ( ) - 1 ) == c ; }
target:  Returns if string ends with provided character.