Which part of the code should i post?The part where you deserialize and try to update your variable.
That staticCan't you just tell by looking at the data model? I mean, you have just provien how bad it is to have redundant information.
attribute is their as a count of how many students
their actually is.
I also am serializing the wholeSerialization does not result in text files.
students, I have them in an ArrayList which gets
serialized, and the reason I think it serialized
properly is because if i go into the text file, i can
see all the data (such as the student names etc).
So basically, I think my data is serializing, but theYou are serializing, so the c'tor of course won't be invoked.
static attribute that counts the amount of students
isnt incrementing everytime a new student is added
(which should increment when a new Student is created
because in the constructor for student, i have
My Programming tutor told me that it isn't displayAnd your tutor can't be bothered to help you looking for your problem? It's his job.
the data correctly because of the reason that the
studentCount isn't incrementing, even though the data
is actually being deserialized.....
Perhaps their is a better way of counting my studentsI already told you - calling theArrayList.size() would be the best way.
rather than a static variable?