hasNext() , in Scanner class in JAVA | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

hasNext() , in Scanner class in JAVA

The java.util.Scanner.hasNext() method Returns true if this scanner has {{another token}} in its input. This method may block while waiting for input to scan. The scanner does not advance past any input. Can anyone explain the meaning of another token here ?

10th Oct 2021, 12:57 PM
𝖆𝖙.𝖚𝕷
𝖆𝖙.𝖚𝕷 - avatar
1 Answer
0
Here another token specially means to tell about delimiter
10th Oct 2021, 1:54 PM
Atul [Inactive]