Howdy, Im getting the "'.class expected" error and I dont know what to correct. The code is
import java.io.*;
public class TeamHeight
{
public static void main (String[] args)
throws IOException
{
double[] height = new double[11];
double sum = 0;
System.out.println ("The size of the array: " + height.length);
for (int i = 0; i < height.length; i++)
{
BufferedReader keyIn = new BufferedReader (new InputStreamReader(System.in));
System.out.print ("Enter the height of the player: ");
height = Double.parsedouble[](keyIn.readLine());
System.out.print ("Player " + (i+1) + ": ");
height[i] = Integer.parseInt(keyIn.readLine());
sum = sum + height[i];
}
System.out.println ("The average height: " + (sum/11));
System.out.println ();
}
}
Thanks
-Airman