Share via


String.endsWith

Class Overview | Class Members | This Package | All Packages

Syntax

public boolean endsWith( String 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.

Description

Tests if this string ends with the specified suffix.