how to send scanned in arrary to class?
I have no idea how to send a scanned in file (array) to a class.
The file has 4 doubles..
10.1 20.2 25.6 30.7
inFile = new Scanner(new File(fileName));
grades[i] = inFile.nextDouble();
Stat elements = new Stat(grades, i); // after the file is scanned in, this is how I am trying to send the arrary over to the "Stat" Class..
public Stat(double scores, int i)
array = scores;
count = i;