I want to split these new lines into one line replace them with commas.
output now=
s = Ar,TB,YY
0,2022323,02
0,223233,29
output I want:
s = Ar,TB,YY,0,2022323,02,0,223233,29;
I tried using s = s.replaceAll("\n", ","); , didnt seem to make a difference.