Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25181
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: BlueJ Coding Help |
| Date | Sat, 31 Aug 2013 11:26:43 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <kvt1vl$cj5$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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sat, 31 Aug 2013 15:26:45 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="12901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ok48Nt/2NNsaAH7zjshH7" |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| In-Reply-To | <line.separator-20130831154504@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:yOseAt0/O+mU04SdNAxLqmpWKS8= |
| Xref | csiph.com comp.lang.java.programmer:25181 |
Show key headers only | View raw
On 8/31/2013 9:46 AM, Stefan Ram wrote:
> 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.
Is it just me, or are others also peeved that PrintStream
always ends lines with the system's line separator? IMHO, the
separator should be choosable on a stream-by-stream basis, so
(for example) one could easily write through a PrintStream to
a socket protocol requiring \r\n no matter what the local
system uses.
Ah, well. The horse and barn have been nonproximate for
a long time now.
--
Eric Sosman
esosman@comcast-dot-net.invalid
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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