Article View: aus.computers.java
Article #1136Re: println, print?!
From: James Cribb
Date: Thu, 20 May 1999 00:00
Date: Thu, 20 May 1999 00:00
19 lines
1078 bytes
1078 bytes
In article <37441330.98141F7D@ihug.com.au>, jam wrote: | | System.out.print(received); | | The strange thing is, when I have that in a loop, it doesn't get printed | out if I have it as print, but if i have it as println, it is fine Sounds like System.out is line-buffered. You'd expect it to be. | Is there anything in java that is kind of like fflush() in C that flush | the stdin/out put?? System.out is a java.io.PrintStream, which has a public void flush() method. In other words, use System.out.flush(). Do you have the manuals for Java? If not, they're on-line at http://www.javasoft.com/products/jdk/1.2/docs/index.html
Technical Details
Message-ID:
<7i251a$6es$1@the-fly.zip.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37441330.98141F7D@ihug.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,c63335b03a0ce709 X-Google-Attributes: gid10d6db,public From: nospam@no.spam.thanks (James Cribb) Subject: Re: println, print?! Date: 1999/05/20 Message-ID: <7i251a$6es$1@the-fly.zip.com.au> X-Deja-AN: 480314150 References: <37441330.98141F7D@ihug.com.au> Organization: Zip World Reply-To: jamesc@zip.com.au Newsgroups: aus.computers.java