I want to split this string :
String line = "04/25/17|13:00|Line 0";
into ("04/25/17","13:00","Line 0");
I tried
String[] parts[] = line.split("|");
and I've got (0,4,/,2,5,/,7,1,3,:,0,0,L,i,n,e,0)
then I tried String[] parts[] = line.split("\\|");
I got the same result
Please help!