Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.java.programmer > #5410

Re: The greeting code in Java

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!Xl.tags.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail
NNTP-Posting-Date Sun, 19 Jun 2011 16:28:27 -0500
From rossum <rossum48@coldmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: The greeting code in Java
Date Sun, 19 Jun 2011 22:28:23 +0100
Message-ID <9qpsv6posju2o7bfv777hg2clgbphj3rl2@4ax.com> (permalink)
References <f61fee62-589e-4ad1-a9ef-a54e2b589e5b@s9g2000yqm.googlegroups.com> <ld8sv6tugbkdq7n1dc0d4ja0o604rr6n5q@4ax.com> <b70ab7d1-fe03-413e-ba87-6819ae24973e@hd10g2000vbb.googlegroups.com>
X-Newsreader Forte Agent 1.93/32.576 English (American)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Lines 31
X-Usenet-Provider http://www.giganews.com
X-AuthenticatedUsername NoAuthUser
X-Trace sv3-0Wri7R2RkdaH75ZCR9vRbBmFu+bqChTh36wP4GIKy3ETQHaOEePWq0eECLEq5yncRbOPAo5GBEL5isx!mW7u84JW5DprQ0XS6rkOi/OWe4bAmHEDu0U5dwHo3f7MgiZ/5kVCupMEIDz0n7H/JYg6eRDXK3O3!hP4=
X-Complaints-To abuse@btinternet.com
X-DMCA-Complaints-To abuse@btinternet.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2339
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5410

Show key headers only | View raw


On Sun, 19 Jun 2011 12:15:01 -0700 (PDT), Saeed Amrollahi
<amrollahi.saeed@gmail.com> wrote:

>What is the Scanner? 
As Martin said, you need to read the Javadoc:
(http://download.oracle.com/javase/6/docs/api/java/util/Scanner.html)

Java is a relatively small language with a huge standard library.  You
cannot understand the language without knowing the basics of the
library.  The library is described in the Javadocs.  If you have not
done so already, download them from
(http://www.oracle.com/technetwork/java/javase/downloads/index.html#docs)
and install them on your computer.  Your IDE should be able to link to
them and use them to help you.

>Why we use nextLine?
It returns the next line of input as a String.  Since your program
reads a line of input it is the obvious method to use.

>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!
Ask the authour of the book you are using.

rossum

>  -- Saeed

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

The greeting code in Java Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-19 06:05 -0700
  Re: The greeting code in Java rossum <rossum48@coldmail.com> - 2011-06-19 17:36 +0100
    Re: The greeting code in Java Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-19 12:15 -0700
      Re: The greeting code in Java Martin Gregorie <martin@address-in-sig.invalid> - 2011-06-19 19:46 +0000
        Re: The greeting code in Java Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-19 22:34 -0700
          Re: The greeting code in Java Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2011-06-23 11:43 +0300
        Re: The greeting code in Java Martin Gregorie <martin@address-in-sig.invalid> - 2011-06-20 10:13 +0000
          Re: The greeting code in Java Michael Wojcik <mwojcik@newsguy.com> - 2011-06-22 09:29 -0400
      Re: The greeting code in Java Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-06-19 16:00 -0400
      Re: The greeting code in Java Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-06-19 16:05 -0400
        Re: The greeting code in Java Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-19 22:40 -0700
      Re: The greeting code in Java rossum <rossum48@coldmail.com> - 2011-06-19 22:28 +0100
  Re: The greeting code in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-06-19 21:14 -0700
  Re: The greeting code in Java Roedy Green <see_website@mindprod.com.invalid> - 2011-06-19 21:23 -0700
  Re: The greeting code in Java blmblm@myrealbox.com <blmblm.myrealbox@gmail.com> - 2011-06-20 19:20 +0000
    Re: The greeting code in Java Ney André de Mello Zunino <zunino@softplan.com.br> - 2011-06-22 15:55 -0300

csiph-web