Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Text delay Date: Fri, 19 Oct 2012 13:49:30 -0400 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: <4e43e1e2-4f9c-479f-b5a6-ab66cdbf5d53@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 19 Oct 2012 17:49:32 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="ffb8f7085759b339c1002252b48331a4"; logging-data="24803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cVU+eynMAVDLOsKjwjEQ7" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: <4e43e1e2-4f9c-479f-b5a6-ab66cdbf5d53@googlegroups.com> Cancel-Lock: sha1:NlSkWDJDjVixzEkg+DgFdiHZvLM= Xref: csiph.com comp.lang.java.programmer:19442 On 10/19/2012 1:15 PM, K wrote: > Does anyone know how to make certain text in a java application delay and display after the previous text System.out.println("the previous text"); try { Thread.sleep(desired_delay_in_milliseconds); } catch (InterruptedException ex) { System.out.println("This may be premature, but:"); } System.out.println("certain text"); In other words, you'll get no better answer today than you did three days ago unless you explain your situation more clearly. -- Eric Sosman esosman@comcast-dot-net.invalid