I need help using the split() method. I have the following String :
String values = "0|0|0|1|||0|1|0|||";
I need to put the values ββin an array. 3 lines are possible: "0", "1" and ""
My problem is that I am trying to use split() :
String[] array = values.split("\\|");
My values ββare only saved until the last 0. It seems that the "|||" part cropped. What am I doing wrong?
thank
java string split
Dusan Jan 19 '13 at 12:54 on 2013-01-19 12:54
source share