Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: comp.lang.java.programmer Subject: Re: "Small" Program Challenge. Date: Thu, 14 Jun 2012 00:16:13 +0000 (UTC) Organization: Aioe.org NNTP Server Lines: 17 Message-ID: References: NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:15261 Daniel Pitts wrote: (snip) > I didn't say a "new line" character. However, print("Hello World\n") is > the same length. My intent was line separator, however if you choose to > interpret it the other way, there is no benefit or penalty. Note that there is no requirement that the host system even use a newline character. There are systems that keep track of lines by length. Now, the C tradition of using '\n' as a line terminator, even on systems that don't store files that way, isn't completely gone in Java. Writing a "\n" will likely generate a new line even on systems that don't use a newline character. -- glen