how to find words in string 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");