Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

contains example in java

String s1 = "My name is GFG"; 
  
// prints true 
System.out.println(s1.contains("GFG")); 
  
// prints false 
System.out.println(s1.contains("geeks")); 
    
 
PREVIOUS NEXT
Tagged: #java
ADD COMMENT
Topic
Name
2+7 =