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(System.in) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Scanner(System.in)" Watch "Scanner(System.in)" New topic
Author

Scanner(System.in)

Anup Om
Ranch Hand

Joined: Dec 30, 2009
Posts: 62
Hello,



Why doesn't it pause for input?

Thanks,


SCJP6
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

All you're doing is creating a scanner--you're not actually scanning.
 
Don't get me started about those stupid light bulbs.
 
subject: Scanner(System.in)
 
Similar Threads
Java 1.5 on mac
can class be declared static?
Incompatible operand types Scanner and int
Simple input commands
Prompt for file name