This is a follow-up to this question.
The question is on the second line below.
"".split("x"); //returns {""} // ok
"x".split("x"); //returns {} but shouldn't it return {""} because it's the string before "x" ?
"xa".split("x"); //returns {"", "a"} // see?, here "" is the first string returned
"ax".split("x"); //returns {"a"}
As per the
java.util.regex.Patternsource, whichString.split(..)uses,