private int numForName(String nameOfDay) {
           int dayNum = 0;
           if (nameOfDay.equals("Sunday")) {
                dayNum = 1;
           } else if (nameOfDay.equals("Monday")) {
                dayNum = 2;
           } else if (nameOfDay.equals("Tuesday")) {
                dayNum = 3;
           } else if (nameOfDay.equals("Wednesday")) {
                dayNum = 4;
           } else if (nameOfDay.equals("Thursday")) {
                dayNum = 5;
           } else if (nameOfDay.equals("Friday")) {
                dayNum = 6;
           } else if (nameOfDay.equals("Saturday")) {
                dayNum = 7;
           }
           return dayNum;
     }