It seem silly to argue about what some lines of code do when you can compile and execute them to see.
If more info is needed, add println()s to show the values of variables as they change and to...