finding a word in a sentence 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");