help needed on split function
Hi All,
i have a small code :-
String selecteID = "QP|10009";
String radioId []= selectedID.split("|");
int i = 0 ;
System.out.println("radioId[0] ="+radioId);
System.out.println("radioId[1]= "+radioId[++i]);
Its output is
radioId[0]=
radioId[1]=Q
However i wanted the code to return ans as :--
radioId[0]=QP
radioId[1]=10009
Why does the split function does not work for '|' ? Or we cannot use '|' in case of split functions.

