Language GuideBuilt-in TypesStringMethodscontainsOn this pagecontainsCheck whether the string contains the specified substring. "hello".contains("llo"); //true"hello".contains("lloa"); //false Syntax contains(substring) Returns A boolean indicating whether the substring exists or not.