I reopen a project which was compiling and running fine, and I get errors:
"String cannot be converted to CharSequence"
String status = "blah blah";
int countArobase = StringUtils.countMatches(status, "@");
// error "String cannot be converted to CharSequence" at the "@" String.
boolean test = feature.contains("blah blah");
// error "String cannot be converted to CharSequence" at the "blah blah" String.
Have you checked the JDK & JRE version being used to build the project in NetBeans?
If you are getting problem at compile time, please check your JDK otherwise check your JRE.
If you are using some build tool, check the JDK being used for build tool and
-target for the Java compiler.