Fairly new to
java here....teaching myself through a text book...I asked a couple questions on here before and found it real helpful. hope someone can tell me what I'm doing wrong.
Basically I'm supposed to create an application that creates an array of 10 Student objects each of which have 5 Class objects then display the grades. It compiles fine but once I add the first student array terminal says "Exception in
thread "main" java.lang.NullPointerException
at InputGrades.main(InputGrades.java:14)"
can anyone explain my mistake to me?
i didn't include my displayResults method to save room/didnt think it mattered.