James Rivera wrote:When I pass "ArrayList <StudentClass> classes" toString(), I get "0.0, Null, Null" the first time and absolutely nothing the second time.
Any help is greatly appreciated!
Well, the first thing that I see is 9 classes and 669 lines of code, and you've just come up with a pretty basic error.
Have you not
tested these classes before now? Individually,
and with some dummy data?
If not, THAT'S your basic problem.
However, another major problem I see is that your
Student class extends
Person, yet doesn't require any of
its fields in its constructors. Indeed, it would appear that you can just create a '
new Student()' and then rely on whatever created it to set
every field in both the
Student AND
Person parts.
But, it's not REQUIRED that they do; which, quite apart from being very bad practise, means that right now you can set up a
Student with no name, no address, no GPA etc. and your program will happily allow it.
And I strongly suspect that this is exactly what HAS happened.
My advice:
StopCoding (←click) and THINK.
Winston