Find out if a series of dates covering an interval
I have two objects calendar Calendar startCalendar = new GregorianCalendar(2013,0,31); Calendar endCalendar = new GregorianCalendar(); I want to know if the interval between the two dates listed above is covered by n of other objects pair calendars without holes between intervals Example1: Calendar startCalendar1(2013,0,31); Calendar endCalendar1(2014,0,31); Calendar startCalendar2(2013,5,31); Calendar endCalendar2(); Is GOOD Example2: Calendar startCalendar1(2013,0,31); Calendar endCalendar1(2014,0,31); Calendar startCalendar2(2014,2,31); Calendar endCalendar2(); NOT GOOD I use Java 6 Thanks