Well, although Norm's solution will usually work, it is generally better to use a static variable retrieved from System.getProperty('line.separator"), to be technically more robust.

An example of...