question: public static boolean endsWith ( char s [ ] , int len , String suffix ) { final int suffixLen = suffix . length ( ) ; if ( suffixLen > len ) return false ; for ( int i = suffixLen - 1 ; i >= 0 ; i -- ) if ( s [ len - ( suffixLen - i ) ] != suffix . charAt ( i ) ) return false ; return true ; }
target:  Returns true if the character array ends with the suffix.