Java测试字符串是否包含特定单词 Java String.valueOf() Java字符串大小写更改示例代码 Java测试字符串是否包含特定单词 public class Sample { public static void main(String args[]){ String str = "Hello how are you welcome to codingdict"; String test = "codingdict"; Boolean bool = str.contains(test); System.out.println(bool); } } Java String.valueOf() Java字符串大小写更改示例代码