Java Sting endsWith() method Example

The Java String endsWith() method takes an argument or a parameter and returns a boolean value(true or false). Sting endsWith():