Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Scanner and nextChar?  RSS feed

 
Barry Burd
Author
Ranch Hand
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The new Java 1.5 has a class named Scanner, and each scanner object has methods nextInt, nextDouble, and so on. Can anyone tell me what they had in mind when they omitted nextChar? Is there a recommended way of reading a char value? Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!