different between nextdouble ()and hasnextdouble() function in Java
Answers
Answered by
4
Answer:
the nextdouble is a method of java scanner class which is used to scan the next token to the input as a double.
the hasnextdouble is a method of java scanner class which is used to check if the next token in his scanner input can be interpreted as a double value using the next double method.
Explanation:
hope it helps you
plz follow me
Similar questions
Social Sciences,
2 months ago
English,
2 months ago
Psychology,
2 months ago
English,
6 months ago
Science,
6 months ago
English,
11 months ago
English,
11 months ago
English,
11 months ago