Java check for word in string

Here we will learn how to check if a string contains given word or not?

 

Output will be

 

Leave A Comment

Your email address will not be published. Required fields are marked *