Hi, I'm a freshman and I just started programing. I have an assignment due soon, and it's almost finished. My only problem is there is one build error that tells me ".class expected". This is on the same line as a for statement... and that really confuses me. Here's my code. Bear with me, I know it might make some of you cringe . :)
/**
* @(#)LetterGrade.java
*
* LetterGrade application
*
* @author: JanieRae
* @version 1.00 2009/11/23
*/
import java.util.Scanner;
public class findMedian {
public static void main(String[] args) {
Scanner keyboard = new Scanner (System.in);
int total;
int median;
int[] nums;
nums = new int[12];
System.out.println(" Enter the first value");
nums [0] = keyboard.nextInt();
System.out.println(" Enter the second value");
nums [1] = keyboard.nextInt();
System.out.println(" Enter the third value");
nums [2] = keyboard.nextInt();
System.out.println(" Enter the fourth value");
nums [3] = keyboard.nextInt();
System.out.println(" Enter the fifth value");
nums [4] = keyboard.nextInt();
System.out.println(" Enter the sixth value");
nums [5] = keyboard.nextInt();
System.out.println(" Enter the seventh value");
nums [6] = keyboard.nextInt();
System.out.println(" Enter the eighth value");
nums [7] = keyboard.nextInt();
System.out.println(" Enter the ninth value");
nums [8] = keyboard.nextInt();
System.out.println(" Enter the tenth value");
nums [9] = keyboard.nextInt();
System.out.println(" Enter the eleventh value");
nums [10] = keyboard.nextInt();
for ();
{
total = nums[0] + nums[1] + nums[2] + nums[3] + nums[4] + nums[5] +nums[6] + nums[7] + nums[8]+ nums[9]+ nums[10]+ nums[11];
median = total / 11;
}
}
}