"String".contains [1]

指定文字列を含むか真偽します。

String s1 = "java and javaScript";
if (s1.contains("Java")) {
    System.out.println("ture");
}