When i surfed for "how to get user data input as float?", I saw the Scanner class being used. Is there a way to get float input using only java.io.*;?
How to accept use input as float?
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
mstellaluna
31 August 2018, 01:14solution
Yes there is, with the code below you would need to change variable to the name you want.
+2
Zubin Nair
30 August 2018, 14:32useful
use double instead of float
+1