Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #25184

Re: BlueJ Coding Help

From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: BlueJ Coding Help
Date 2013-09-01 02:20 +0200
Organization A noiseless patient Spider
Message-ID <kvu18t$dsj$1@dont-email.me> (permalink)
References <87e3fd5b-cd93-4c50-bef4-05d9cf49ab0f@googlegroups.com> <lveh9a2whi.fsf@saunalahti.fi> <line.separator-20130831154504@ram.dialup.fu-berlin.de> <lva9jxubc8.fsf@saunalahti.fi>

Show all headers | View raw


On 2013-08-31 17:30, Jukka Lahtinen allegedly wrote:
> ram@zedat.fu-berlin.de (Stefan Ram) writes:
>> Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> 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.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

BlueJ Coding Help Marcelo Rodriguez <mrodvicente@gmail.com> - 2013-08-30 17:30 -0700
  Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-08-31 09:41 +0300
    Re: BlueJ Coding Help Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-08-31 11:26 -0400
    Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-08-31 18:30 +0300
      Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-01 02:20 +0200
        Re: BlueJ Coding Help Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2013-09-01 12:05 +0300
          Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-01 15:47 +0200
            Re: BlueJ Coding Help Arne Vajhøj <arne@vajhoej.dk> - 2013-09-01 18:35 -0400
              Re: BlueJ Coding Help Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2013-09-02 13:53 +0200

csiph-web