java endsWith

endsWith() String Example

Java String class comes with many string utility methods with which string manipulation becomes easier. Read these methods and you will remember the laborious days of C/C++. One such method is endsWith() String. The present method endsWith(String str) checks the given string ends with a few characters like str or…