Since String.split() works with regular expressions, this snippet:
String.split()
String s = \"str?str?argh\"; s.split(\"r?\");
... yields: <
A general solution using just Java SE APIs is:
String separator = ... s.split(Pattern.quote(separator));
The quote method returns a regex that will match the argument string as a literal.
quote