JavaStringendsWith

Tests if this string ends with the specified suffix.

Syntax

str.endsWith(suffix)