Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

read in an integer  RSS feed

 
KwanNok Wong
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example (I didn't actually compile this today . . .)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!