How to test if a string contains specific words in Java?
Answers
Answered by
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