Learn the meaning of contain as a verb in English, with different senses and usage. See how to use contain in sentences, with synonyms, antonyms, and related words. Learn how to use the contains() method to check if a string contains a sequence of characters. See syntax, parameter, return value, and examples of the method. The Java String contains () method is used to check whether the specific set of characters are part of the given string or not. It returns a boolean value true if the specified characters are substring of a given string and returns false otherwise. The String.contains() method is used to search for a sequence of characters within a string. In this article, we will learn how to effectively use the string contains functionality in Java.