In Java:
String base = "a|a||";
String[] stri= .split("\\|");
produces a string array with length 2.
On the other hand in python:
base = "a|a||"
base.split("|")
produces an array with length 4. What do I have to do to get the same result in Java?