The StringBuilder class does not have a contains() method, but it does have an indexOf() method. The indexOf() method returns -1 when the substring is not found.
Example:
stringBuilder.indexOf(charactersYouWantToCheck) != -1
The StringBuilder class does not have a contains() method, but it does have an indexOf() method. The indexOf() method returns -1 when the substring is not found.
Example:
stringBuilder.indexOf(charactersYouWantToCheck) != -1