How do I check if a string contains a specific word?
Category: java.lang, viewed: 6K time(s).
The String.indexOf method returns the first index of a substring found in the specified string. If the substring is not found this method returns -1.
The String.indexOf method returns the first index of a substring found in the specified string. If the substring is not found this method returns -1.