File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 11398
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scanner = new Scanner(System.in);