public void printToConsole() {
        // Outputs to console what would be sent to the file.
        for(Contact eachContact : allContacts) {
            System.out.print("contact,"+eachContact.getId()+","+eachContact.getName()+","+eachContact.getNotes()+"\n");
        }
        for(Meeting eachMeeting : allMeetings) {
            if(eachMeeting instanceof PastMeeting) {
                PastMeeting eachPastMeeting = (PastMeeting) eachMeeting;
                System.out.print("pastmeeting,"+eachPastMeeting.getId()+","+serialDate(eachPastMeeting.getDate())+
                    ","+serialContactSet(eachPastMeeting.getContacts())+","+eachPastMeeting.getNotes()+"\n");
            } else {
                System.out.print("meeting,"+eachMeeting.getId()+","+serialDate(eachMeeting.getDate())+
                    ","+serialContactSet(eachMeeting.getContacts())+"\n");
            }
        }
    }