How to check if a string contains the sequences of characters or not using java ?
How to check if a string contains the sequences of characters or not using java ?
Contain() Method
- java.lang.String.contains() method searches the sequence of characters in the given string. If sequence of char values are found in this string then print Yes otherwise print No.
Sample Code in Java
Output
Yes