Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: The greeting code in Java Date: Sun, 19 Jun 2011 14:19:36 -0400 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: <3d6aab49-9a4a-4614-af12-bb1c95bebbe7@w4g2000yqm.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 19 Jun 2011 18:14:43 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="yplGUUrGzpiV4sv58weMcA"; logging-data="15148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iWjbLPzJ61lQfugkD/gOk7i1j9ptCI30=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: Cancel-Lock: sha1:rgzEUuYfRuy5fCxoWwHTk78HoAI= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5394 On 06/19/2011 01:11 PM, Jeff Higgins wrote: > On 06/19/2011 01:07 PM, Jeff Higgins wrote: > There is also java.io.Console > > > public class Main { public static void main(String[] args) { System.console().printf("Hello, %1$s!\n", System.console().readLine("Please enter your first name: ")); } }