如何判断 stringA 是不是 stringB 的子串? 这里的知识点包括: String.contains() 方法可以直接用于判断 String 对象是否为子串。 StringA.contains(stringB) == true;