Java: split a list of Dates in sublists that rappresent ranges of days from original lists
<p>I have a list of Dates ( or DateMidnight from joda time) i rappresent here the dates like text dd/MM/yyyy for semplicity, for example:</p>

<p>[ 01/01/2010, 02/01/2010, 03/01/2010, 05/01/2010, 10/01/2010, 11/01/2010, 22/01/2010, 23/01/2010, 24/01/2010]</p>

<p>i want to obtain from this list another list that contains sublists that rappresent ranges of continuous days from the original list, like this:</p>

<p>[ [01/01/2010, 03/01/2010] , [05/01/2010, 05/01/2010], [10/01/2010, 11/01/2010], [22/01/2010, 24/01/2010] ]</p>

<p>How can i do this ? </p>

<p>Thanks</p>
