/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.time.*;
import java.time.temporal.*;
import java.time.format.*;


/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{


    LocalDate start = LocalDate.of( 2017 , Month.JANUARY , 23 ) ;
    LocalDate stop = LocalDate.of( 2017 , Month.FEBRUARY , 3 ) ;  // Third instead of the Second of February, to be half-open.

    LocalDate ld = start ;
    List<LocalDate> dates = new ArrayList<>() ;
    while ( ld.isBefore( stop ) ) {  // Using "isBefore" for Half-Open approach.
        dates.add( ld ); // Collect this date.
        ld = ld.plusDays( 1 ) ;  // Setup the next loop.
    }
    
    System.out.println( "start: " + start + " | stop: " + stop );
    System.out.println( "dates: " + dates );
    
    
	}
}