so i just fixed an error then following that i got the exception error and not sure what to change to fix it. i've looked at similar issues but none of them seemed to pertain to my specific problem.
import java.util.Scanner;
import java.io.*;
import java.text.DecimalFormat;
public class AAAAAA {
public static void main (String[] args)throws IOException {
final String fileName = "classQuizzes.txt";
//1)
Scanner sc = new Scanner(new File(fileName));
//declarations
String input;
double total = 0;
double num = 0;
double count = 0;
double average = 0;
String lastname;
String firstname;
double minimum;
double max;
//2) process rows
while (sc.hasNextLine()) {
input = sc.nextLine();
System.out.println(input);
//find total
total += Double.parseDouble(input); //compile error on using input
count++;
System.out.println(count); //test delete later
//find average (decimal 2 points)
System.out.println("hi"); //test
average = (double)total / count;
System.out.println("Average = " + average);
//3) class statistics
}
}
}