public static void addElement (String text1, String text2) {
        if (dayNum == -1) {
            System.out.println("Please start a new day.");
            return;
        }
        
        switch (mode) {
            case 0:
                days[dayNum].trans[days[dayNum].spTransNum].words[0] = text1;
                days[dayNum].spTransNum++;
                break;
            case 1:
                days[dayNum].trans[days[dayNum].enTransNum].words[1] = text1;
                days[dayNum].enTransNum++;
                break;
            case 2:
                days[dayNum].desc[days[dayNum].descNum] = text1;
                days[dayNum].descNum++;
                break;
            case 4:
                days[dayNum].trans[days[dayNum].subConjNum].words[0] = text1;
                days[dayNum].trans[days[dayNum].subConjNum].words[1] = text2;
                days[dayNum].subConjNum--;
                break;
            default:
                System.out.println("Please set a mode.");
                break;
        }
        output ();
    }