Try debugging your code by adding some println()s to the method you are having problems with to show how the variables' values are changing. For example print out what is being read in: the chars and...