Try debugging the code by adding some println statements that print out the values of variables as the code executes so you can see what the computer sees as it executes the code.
Print out the...
Type: Posts; User: Norm
Try debugging the code by adding some println statements that print out the values of variables as the code executes so you can see what the computer sees as it executes the code.
Print out the...
That will take a search through the data to find the most and least values.
What does the program output now as a result of these searches? Post the current code to show what it is doing.
The code has two definitions for the variable: rainfall. One is an array and one is a double.
rainfall.length
and
rainfall[0];
are not valid for a double. Those statements are for arrays.
...
Please post any questions or problems you are having?
If there are errors, copy the full text of the messages and post them.