Unable to print line space between 2 string values
StringBuilder ac = new StringBuilder();
ac = ac.append(cu.getFieldText("Text1"));
ac = ac.append("\n");
ac = ac.append(cu.getFieldText("Text2"));
ac = ac.append("\n");
When i am passing ac.toString() value to the another textArea the values are printing on the same row instead of printing like below
abc
<<line space>>
efg
Tried with below:
1. ac.append("\n");
2. ac.append("\r\n");
3. ac.append(System.getProperty("line.separator"));
above 3 ways are working fine and printing the correct out put on the console but printing all the text in the same line when passed it to the text area. Please help me.