To explain:
the . is a special character in regex that matches any single character, thus your empty array
the '\.' will tell the regex to escape that behavior and actually match the .
but within a
java string, the \ is an escape character as well, so to get a \ in the string so that it is passed to regex (from within split) we need to escape, yet again, the \\ will give us the \ in the string, thus
"\\." will be compiled into "/." which will be interpreted as "."