First, a bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. You can change your display name here. Thanks!
Now, as to your question: if I corrected the capitalization and wrote out "System.out.println()", it should behave exactly as you expect it to. Therefore your real code (which obviously is at least a little different from this) behaves differently because of those differences. If UseRealCode in your post, we could tell you exactly what's up with it -- so let's see!
Ernest meant PostRealCode. For one, your code contains two capitalization errors. Secondly, if I fix those two and change the "s.o.p" to full System.out.println statements, it prints "new line character." for me each time I run the code.
Your last post simply makes things even more confusing. If you don't post your real code how on earth are we supposed to understand your problem? You may have problems caused by your operating system; older Macs used "\r" for line end, newer Macs and Unix/Linux use "\n" and DOS/Windows uses "\r\n".
You appear to be ignoring Ernest's earlier warning about names. And it's not "jzt"; please look at this.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com