public boolean endsWith (String suffix)

Tests if this string ends with the specified suffix.

Parameters:
suffix    the suffix.

Returns:  true if the character sequence represented by the argument is a suffix of the character sequence represented by this object; false otherwise. Note that the result will be true if the argument is the empty string or is equal to this String object as determined by the equals(Object) method.