File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes read in an integer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "read in an integer" Watch "read in an integer" New topic

read in an integer

KwanNok Wong

Joined: Nov 07, 2002
Posts: 5
hi there,
i am doing an assignment of asking user to input data from keyboard.
could u please teach me how to ask users to input an integer by keyboard? i would be appreciated if you could provide me with an example as well.
thanks very much
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Here is an example (I didn't actually compile this today . . .)
subject: read in an integer
It's not a secret anymore!