+ 1
Can anyone explain how this example works?
while(it.hasNext()) value= it.next(); s.o.p(value);
2 ответов
+ 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?
0
somewhat.thanks anyways