public boolean endsWith(String suffix){
  return str.endsWith(suffix);
}

public boolean endsWith ( String suffix ) { return str . endsWith ( suffix ) ; }
tests whether this charseq ends with the specified suffix
