/* 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 , 2 ) ;

    LocalDate ld = start ;
    List<LocalDate> dates = new ArrayList<>() ;
    while ( ! ld.isAfter( stop ) ) {
        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 ) ;
   
    
	}
}