This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes A question about Scanner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "A question about Scanner" Watch "A question about Scanner" New topic

A question about Scanner

Steven Gao Song
Ranch Hand

Joined: Oct 02, 2006
Posts: 78
Hi, All,
There is one sample code for Scanner class.
What I cannot understand is why inputting happens after the message "Enter numbers to average."

Andy Morris
Ranch Hand

Joined: May 30, 2004
Posts: 78
I think you've got the wrong forum, this is for SCJP certification.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: A question about Scanner
Similar Threads
Test score
int cannot be derefrenced
List of numbers input from scanner into an arraylist
To find the Medium