Try debugging the code to see what it is doing. I use println() statements that print out the values of the variables as the code executes so you can see what the computer sees when it executes the...