I have a String userId:344556\\ncustomerId:233 .
I want to replace the substring \\n with new line. So i tried
String more = strmoreInfo.replace("\\n", "\n");
My desired output is:
userId:344556
customerId:233
But my current output is:
userId:344556\
customerId:233
What am I doing wrong?