public boolean endsWith(java.lang.CharSequence suffix){
  return startsWith(suffix,length() - suffix.length());
}

public boolean endsWith ( java . lang . CharSequence suffix ) { return startsWith ( suffix , length ( ) - suffix . length ( ) ) ; }
indicates if this text ends with the specified suffix .
