作者: SuperApollo 时间: 2015-9-17 11:14
然后会报错:
Multiple markers at this line
- The type java.lang.CharSequence cannot be resolved. It is indirectly
referenced from required .class files
- The method contains(CharSequence) from the type String refers to the
missing type CharSequence作者: Mr.W 时间: 2015-9-17 14:38
public boolean contains(CharSequence s):当且仅当此字符串包含指定的 char 值序列时,返回 true。 contains方法判断的是一个字符串中是否包含字符s,你传入的是字符串肯定报错,第二句话都说了