Try debugging the code by adding calls to the println method that prints out the values of the variables that control what the program does. The print out will show you what the computer sees and...