Java unable to serialize a objects which contain TreeMaps with Comparators
问题 I have as an assignment (for the OOP course from Uni) a pretty large project: a school register, where students can see their grades, teachers can add grades and so on. The "base" class is a singleton which contains all the classes (Java) used, such as an array of users, classes (as in school classes) and a TreeMap that associates classess and teachers to courses. I want to serialize this base class (Central), in order to save the modified data. The problem is that I get this exception java