Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: The greeting code in Java Date: Sun, 19 Jun 2011 19:46:37 +0000 (UTC) Organization: UK Free Software Network Lines: 26 Message-ID: References: NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1308512797 28235 84.45.235.129 (19 Jun 2011 19:46:37 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Sun, 19 Jun 2011 19:46:37 +0000 (UTC) User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5401 On Sun, 19 Jun 2011 12:15:01 -0700, Saeed Amrollahi wrote: > What is the Scanner? Why we use nextLine? What's the relation of such > concepts with a simple greeting program. Why the code for writing > "Hello, world" is in chapter 1, page 1 of The Java Programming Language, > but the code of greeting may be in Chapter 20! It sounds as though you didn't download and install the Java SE documentation package. You need it: the Java equivalent of the C standard library is considerably bigger and is fully documented there via the Javadocs documentation tool, which is also part of the standard JDK. C/C++ doesn't have a standard documentation tool that comes near Javadocs. The Java 6 standard class library includes the Scanner class, so of course it is fully described in the Java 6 documentation set. The description there is much better than any summary we might write. Quite apart from anything else, you'll find that writing your comparison is a lot easier if you have the documentation set installed and use it to help your writing. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |