Originally posted by Scott Selikoff: What are your import statements? It sounds like you're not using the correct String or Pattern class, as all Strings implement CharSequence interface. import java.util.regex.*; is the only import statement i used in my program.
Hmm, is it possible your JVM is set to 1.3? According to the API CharSequence has really only been around since 1.4 so any 1.3 versions of java.lang.String would give the error you're seeing. I'd check your class path and jvm properties.