Table of Contents [hide]
String’s endWith method checks if String ends with specific suffix. It returns boolean datatype.
When you run above program, you will get below output:
Method syntax:
String endsWith Example:
Please note that endsWith method is case sensitive as you can see in above example
Was this post helpful?
Let us know if this post was helpful. Feedbacks are monitored on daily basis. Please do provide feedback as that\'s the only way to improve.