This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Again someone who programs in an IDE, then runs his program while there are still compiler errors.
Jose, check out these compiler errors. They will tell you what is going wrong. My guess is you've got an unreachable code error - the code inside the loop will never execute. That also counts for the if statement but because of debugging constants you might change (e.g. private static final boolean DEBUG = false;) using false in if statements will not cause compiler errors.