+ 1

Can anyone explain how this example works?

while(it.hasNext()) value= it.next(); s.o.p(value);

20th Jun 2017, 5:32 AM
Kajal Pradhan
Kajal Pradhan - avatar
2 Respuestas
+ 1
not sure but i guess this is reading of a file, so while the variable "it" has lines/content (hasNext()) it will put the line/value in the variable "value" them print in the screen (system.out.print(value)). Did u understand?
20th Jun 2017, 6:07 AM
Juliano Ventola
Juliano Ventola - avatar
0
somewhat.thanks anyways
20th Jun 2017, 6:45 AM
Kajal Pradhan
Kajal Pradhan - avatar