Link to home
Start Free TrialLog in
Avatar of Ansary100
Ansary100

asked on

How to use Scanner class

Hi

I am trying to Write a set of instructions to prompt the user for an int value and input it using the Scanner class into the variable x and prompt the user for a float value and input it using the Scanner class into the variable y.

IN JAVA Programming
ASKER CERTIFIED SOLUTION
Avatar of InteractiveMind
InteractiveMind
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here's the official Java documentation, for the Scanner class; you may find it useful:

   http://java.sun.com/j2se/1.5.0/docs/api/java/util/Scanner.html

..Thanks; I'm not quite sure why I only got a 'B' grade however?
I'm hoping that you can justify it, otherwise I'll request that the Admin/Moderator ups it to an 'A'.