A very dumb question, I know " and . are both special characters, but why there is a difference when using split() function?
so here is the code
String.split("\"");
String.split("\\.");
They both works, but why there is only one "\" in first line of code and two in second?
Edit: What would happen if I do
String.split("\\"");
Would the result be the same as
String.split("\"");