"\n" is not working when append to StringBuffer
840374Apr 6 2011 — edited Apr 8 2011I have used the following code
StringBuffer itinerary = new StringBuffer();
But the following line is not resulting the new line.
itinerary.append("\n");
Rather if I use -> itinerary.append("\t\n");
then I am getting the line break in the result. But due to "\t" its coming as two lone gap. Is there any other way except "\n" which will work with StringBuffer?