I suggested two different ways to get float numbers:
1) use a Scanner class method to read the data as float from the user
2) use a Double or Float class method to convert the String read from the...
Type: Posts; User: Norm
I suggested two different ways to get float numbers:
1) use a Scanner class method to read the data as float from the user
2) use a Double or Float class method to convert the String read from the...
The Scanner class has methods for reading different types of numbers.
Also the Double class has a method for converting a String to a double.
Take a look at the API doc: Java Platform SE 7
...