Java示例在String对象中搜索 Java示例在字符串中搜索 Java示例拆分字符串 Java示例在String对象中搜索 public class HelloWorld { public static void main(String[] args) { String text = "The cat is on the table"; System.out.print(text.contains("the")); } } Java示例在字符串中搜索 Java示例拆分字符串