Computer Science, asked by thebeast1123N, 3 months ago

different between nextdouble ()and hasnextdouble() function in Java

Answers

Answered by sheetaldikshit3
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