Java String endsWith

The java string endsWith() method checks if this string ends with given suffix. It returns true if this string ends with given suffix else returns false.


The syntax or signature of endsWith() method is given below.

public boolean endsWith(String suffix)


suffix : Sequence of character


true or false

Java String endsWith() method example

Flash soon

Copyright 2017 Design& Development