I need help with the split() method. 
I have the followingString: 
String values = "0|0|0|1|||0|1|0|||";
I need to put the values into an array. There are 3 possible strings: "0", "1", and ""
My problem is, when i try to use split():
String[] array = values.split("\\|"); 
My values are saved only until the last 0. Seems like the part "|||" gets trimmed. What am i doing wrong?
thanks
 
     
     
     
     
    