Its not very clear what you want the for loop to do but what you have is likely to go into an infinite loop
The syntax of a for loop is
Code:
for(initialise; test; change){
// statements to be executed in for loop
}
// come here when for loop finished
When a for loop is encountered -
1) the code in initialise is executed
2) the test is performed
3) if the test is false then the for loop is finished
4) if the test is true then the code inside the loop is executed
5) the 'change' code is executed and we go back to (2)
In your code you have a ; at the end of the for statement which means the code on the next 2 lines are not part of the loop.
You initialise i with getHour() which I assume returns a value <25 the test (i < 25) then will ALWAYS be true, since there is no 'loop code ' the change code is executed but this is empty so i is not changed so we do the test again ......... inifinite loop.
Could help more if you explainedwhat the program is trying to do.