Determine whether the string concludes with the specified characters:
String |
The endsWith() method verifies if a string concludes with the specified character(s).
Tip: Utilize the startsWith() method to examine whether a string begins with the specified character(s).
public boolean endsWith(String chars) |
Parameter |
Description |
chars |
A string representing the character(s) to be checked |
Returns: |
A boolean value:
|