I want to add a ‘\’ character to every string in a list of strings… I m doing something like this but it adds 2 backslashes instead.
feedbackMsgs.add(behaviorName+"\\"+fbCode);
result is like: "abc\\def"
how to make sure a single backslash is added??
Looks like either your
behaviourNameends with a\orfbCodestarts with one.