Computer Applications
Differentiate between nextFloat( ) and nextDouble( )
Input in Java
11 Likes
Answer
| nextFloat( ) | nextDouble( ) |
|---|---|
| It reads the next token entered by the user as a float value. | It reads the next token entered by the user as a double value. |
Answered By
7 Likes
Related Questions
In what way can the following data be read from the scanner object?
(a) Integer type
(b) Float type
(c) Double type
(d) String type
(e) Boolean type
Differentiate between Scanner object and BufferedReader object
Distinguish between the following:
next() and nextLine()
Distinguish between the following:
hasNext() and hasNextLine()