check if a string is a substring of another string java

Java
String input = "Android gave new life to Java";
boolean isFound = input.indexOf("Android") !=-1? true: false; //true
Source

Also in Java: