Hi everyone! I am working on this code that accepts six grades from a GUI, drops the lowest grade and then gives the final grade. However, when I make an array of doubles to store the grades, my compiler tells me that there are incompatible types. What am I missing here? I only use doubles up until that point of the code, so this is really confusing me. Infinite thanks in advance for any help. The problem is highlighted on like 38 here.
grades is a single variable of type double. However, on the right side, the variable grades is assigned to a 5-element array of type double. Recheck the declaration of array variables and see if you can fix this simple syntax error.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795