This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes scanner = new Scanner(System.in); Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "scanner = new Scanner(System.in);" Watch "scanner = new Scanner(System.in);" New topic
Author

scanner = new Scanner(System.in);

shawnyy ser
Greenhorn

Joined: May 01, 2013
Posts: 2
scanner = new Scanner(System.in);
scanner = new Scanner(System.in);
scanner = new Scanner(System.in);
scanner = new Scanner(System.in);
scanner = new Scanner(System.in);
Stuart A. Burkett
Ranch Hand

Joined: May 30, 2012
Posts: 679
Did you have a question ?
NotACodeMill
shawnyy ser
Greenhorn

Joined: May 01, 2013
Posts: 2
Stuart A. Burkett wrote:Did you have a question ?
NotACodeMill


yes please i dont know how to start?....please help me!
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

shawnyy ser wrote:yes please i dont know how to start?....please help me!


Start here.
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11169
    
  16

a question of "how to start" is still pretty vague.

Do you need help buying a computer to use?
Do you need help installing java?
Do you need help in writing, compiling, and testing a "Hello, World" program?
Do you need help with the math?

Assuming you only need help with this specific program, you would generally start with pencil and paper. Work through what your program would look like and print out on the screen. Figure out various methods that may be helpful...like generating a random number, or how to run something N times. Figure out what kinds of things you need to keep track of (total score, number of balls shot, etc). do all this ON PAPER.

Only when you have a good feel for the various components should you start writing a line of code.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
 
subject: scanner = new Scanner(System.in);
 
Similar Threads
how to make game in java
Jumping Problem
Probability question.
army problem ...
Workout