Computer Science, asked by Nayaz6501, 1 year ago

How to test if a string contains specific words in Java?

Answers

Answered by pandeysakshi2003
0

Conclusion. You can use the in operator or the string's find method to check if a string contains another string. The in operator returns True if the substring exists in the string, otherwise it returns False. The find method returns the index of the beginning of the substring if found, otherwise -1 is returned

please make me brainlist

Similar questions