Complete the following file:

Rainfall.java

public class Rainfall { public static double averageRainfall(double[] rainfall) { double sum = 0; int i = 0; int count = 0;
while (. . .)
{
if (. . .)
{
. . .
} i++; }
if (. . .)
{ return 0; } else { return sum / count; } } public static void main(String[] args) { System.out.println(averageRainfall(new double[] { 1, 2, -3, -4, -5, 6, 9999 })); System.out.println(averageRainfall(new double[] { -1, -2, -3, 9999, 100 })); } }