how to find a word in a string in java code example
Example: how to find a string in a sentence in java
if (s.indexOf("orange") != -1){
System.out.println("orange found");
if (s.indexOf("orange") != -1){
System.out.println("orange found");