looping back through the text file

0 lauren towle · October 25, 2014
How can I make .hasNext() reset back to the top of the text file?

Post a Reply

Replies

Oldest  Newest  Rating
0 Alex Sweps · October 26, 2014
Try put it into a while loop.

Boolean running = true;

while(running){
//Code to run
hasnext();

if(need to break out of the loop){
    running = false;
}
}
  • 1

Java / Android Development

107,252 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator