This is the set of doubles and ints that I parsed is named gradeList, and will be parsed to a constructor. The grade List is:
"5 - 90 85 95.5 77.5 88"
The '5' is an int but everything else should be a double. I parsed it like so
public Grades(String gradeList)
{
Double.parseDouble(gradeList);
grades = new Grade[5];
}
I don´t know how to take in the '5' as the length of an array and the other 5 doubles be the data inside of the new array.