I know that I'll have a for loop
that looks something like this. But other than that I have no idea for it to then start back up again :
for (int i = 0; i < 25; i++) {
// my code here
}
To pause the thread that your loop is running in, use;
Thread.sleep (num_milliseconds);
If you want it to run every 5 minutes just use
while (true){
for (int i = 0; i<25; i++){
// your code
Thread.sleep(300000);
}
}