Q. Which method is used to check if a string contains a substring?
Solution:
The contains() method returns true if the string contains the specified substring.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The contains() method returns true if the string contains the specified substring.
Strengthen Your Practice with our comprehensive question bank.