Copy the printouts that show each change to the dmg variable and each time that same variable was referenced. There should be a line where the value made an unexpected change.
Type: Posts; User: Norm
Copy the printouts that show each change to the dmg variable and each time that same variable was referenced. There should be a line where the value made an unexpected change.
Try debugging the code by adding some println() statements to print out the value of the variable every time it is changed and used.
The print out should show you where the value changes from 25 to...
Can you post the program's output that shows what you are talking about?
Try debugging the code by adding some println() statements to print out the value of the variable every time it is changed...