In a string i want to replace '\n'(next line) to ' '(space). So I tried the following code but it not even identifing '\n'
Code:
String test = "sending data \n to excell \n";
test.replace('\n',' ');
If anyone knows how to catch \n in a string please help me.
Code:
String test = "sending data \n to excell \n";
test.replace('\n',' ');
If anyone knows how to catch \n in a string please help me.