String中的contains()方法

String的contains()方法,判断字符串中是否有某个字符,返回boolean型


boolean contains(CharSequence s)
Returns true if and only if this string contains the specified sequence of char values.

你可能感兴趣的:(java基础)