Read two String user input and check if first contains second?

Source Code:

public class StringContains {
public static void main(String[] args) {
String s1 = “Hello World”;
String s2 = “World”;
boolean res = s1.contains(s2);
System.out.println(res);
}
}

Output: