0
How to read in a floating-point number?
I want to read in a floating-point number using Scanner. Anyone knows how to do this?
2 Answers
+ 6
.nextFloat(); works too.
+ 1
I figured it out already. I used .nextDouble();
I want to read in a floating-point number using Scanner. Anyone knows how to do this?