I use the println method to print values on the console:
System.out.println("aH1="+aveHigh1); // show variable's value
Add the above after the line that computes the value.
Do the same...
Type: Posts; User: Norm
I use the println method to print values on the console:
System.out.println("aH1="+aveHigh1); // show variable's value
Add the above after the line that computes the value.
Do the same...
Try debugging the code by adding some println statements to the code where the value is computed. Print out the values of all of the inputs and the values of all the intermediate results so you can...
Can you copy the output and post it here that shows what the code outputs?
Is the code using integer math? 4/6 = 0
or floating point? 4/6.0 = 0.6666