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
2 Answers
0
Here another token specially means to tell about delimiter
10th Oct 2021, 1:54 PM
Atul [Inactive]