Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: BlueJ Coding Help Date: Sun, 01 Sep 2013 02:20:36 +0200 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <87e3fd5b-cd93-4c50-bef4-05d9cf49ab0f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 1 Sep 2013 00:20:45 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="b52030de878d7b2921c511e0e574fb18"; logging-data="14227"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185OVsyRNiDphOsp0GhYLab" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: Cancel-Lock: sha1:Ad2sKONhr2YXgFzByWfG/poeXBw= Xref: csiph.com comp.lang.java.programmer:25184 On 2013-08-31 17:30, Jukka Lahtinen allegedly wrote: > ram@zedat.fu-berlin.de (Stefan Ram) writes: >> Jukka Lahtinen writes: >>> The method System.out.println always adds a linefeed > >> the system's line separator > >>> at the end of the >>> output, and you add one yourself with the \n. > >> "\n" might not be the system's line separator. > > True, but is there a system where it doesn't cause a linefeed? > For example, in the MS systems where the normal line separator is \r\n, > a lone \n moves the cursor to the next line. And when the println method > ends the output with \r\n, the cursor ends up at the beginning of the > next line after that. It doesn't really matter that there was no > carriage return before the first linefeed. Macintoshes, pre-OS X if I'm not mistaken, used \r (carriage return) as the line separator.