boolean endsWith (String s1, String suffix)boolean endsWith (String s1, String suffix)s1 ends with the specified suffix.| Name | Type | Description |
|---|---|---|
s1 | String | A String to test for the presence of the suffix. |
suffix | String | A suffix String to test for in the String s1. |
| Type | Description |
|---|---|
boolean | true if s1 ends with suffix, false otherwise. |