I am spliting string with '&' . For Example:
password=XXXXXXXXX&username=XXXXXXXXXXX
Now if suppose my password contains '&' then i am facing issue here that the password gets trimed on first occurence of '&'.
Example:
password=disney&123&username=XXXXXXXXXXX
So my output will be as follows:
password=disney
123
username=XXXXXXXXXXX
But I want my output as:
password=disney&123
username=XXXXXXXXXXX
Please guide me as i am new to java. And i want to split the string using '&' only and my password may conatin '&' it depends on users.
Thanks in Advance, Ritesh