Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to find a word in string in java

String s = "I have an orange";
if (s.indexOf("orange") != -1){
		System.out.println("orange found");
}
 
PREVIOUS NEXT
Tagged: #find #word #string #java
ADD COMMENT
Topic
Name
1+1 =