1(vi)
The method of Scanner class used to accept a double value is:
- (a)nextInt()
- (b)nextDouble()
- (c)next()
- (d)nextInteger()
Show SolutionHide Solution↓
nextDouble()
Reason — The nextDouble() function reads the next token entered by the user as a double value.