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