private Integer getLessonDurationInMinutes(Calendar start, Calendar end) { int beginHour = start.get(Calendar.HOUR_OF_DAY); int beginMinutes = start.get(Calendar.MINUTE); int endHour = end.get(Calendar.HOUR_OF_DAY); int endMinutes = end.get(Calendar.MINUTE); int duration = 0; duration = (endHour - beginHour) * 60 + (endMinutes - beginMinutes); return new Integer(duration);
private Integer getLessonDurationInMinutes(Date start, Date end) { int beginHour = start.getHours(); int beginMinutes = start.getMinutes(); int endHour = end.getHours(); int endMinutes = end.getMinutes(); int duration = (endHour - beginHour) * 60 + (endMinutes - beginMinutes); return Integer.valueOf(duration);
    private Integer getLessonDurationInMinutes(Calendar start, Calendar end) {        int beginHour = start.get(Calendar.HOUR_OF_DAY);        int beginMinutes = start.get(Calendar.MINUTE);        int endHour = end.get(Calendar.HOUR_OF_DAY);        int endMinutes = end.get(Calendar.MINUTE);        int duration = 0;        duration = (endHour - beginHour) * 60 + (endMinutes - beginMinutes);        return new Integer(duration);    }