What does java return if nothing is entered in scanner? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 12

What does java return if nothing is entered in scanner?

26th Mar 2017, 3:48 AM
Siddharth Saraf
2 Answers
+ 2
Because it counts the nothing as ""
26th Mar 2017, 8:46 AM
Eldar Bakerman
+ 2
a special indicator value called null like an empty text box. it will also be see to equal "".
2nd May 2017, 10:43 PM
josh mizzi
josh mizzi - avatar