Table of Contents [hide]
String’s contains method checks if sequence of characters can be found in String. It returns true if character sequence is present in String else return false.
When you run above program, you will get below output:
Method Signature:
String contains Example:
Please note that contains 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.