Newsgroups: comp.lang.java.programmer
From: "John B. Matthews" <nos...@nospam.invalid>
Date: Thu, 02 Oct 2008 13:30:41 -0400
Local: Thurs, Oct 2 2008 1:30 pm
Subject: Re: System.out and System.err
In article <6kj7spF8625...@mid.individual.net>,
Jan Thom <jantho...@janthomae.de> wrote: > On 2008-10-02 00:09:52 +0200, "Mike Schilling" [...] > <mscottschill...@hotmail.com> said: > > I think we all assume that access to System.out and System.err is > Well the only "official" statement I have found looking at the Interesting. IIUC, not all implementations are so well behaved, though. <code> /**--------------------------------------------------------------- public class ShowThreads { public static void main(String args[]) { SafeScreen.clearScreen(); } // end ShowThreads /**--------------------------------------------------------------- * Simple Java thread example * Last Modified: March 2008 * @author Michael B. Feldman, mfeldman at gwu.edu *--------------------------------------------------------------*/ class SimpleThread extends Thread { private static final Random random = new Random(); // constructor // run method invoked when 'start' called } // end class SimpleThread /**--------------------------------------------------------------- * Thread-safe Mini-terminal controller for vt100 (ANSI) terminals * Translated from C to Java February 2001 * @author Michael B. Feldman, mfeldman at gwu.edu *--------------------------------------------------------------*/ class SafeScreen { public static synchronized void clearScreen() { public static synchronized void write( } // End of class SafeScreen </code> [The code is Professor Feldman's; any errors are mine.] -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||