import java.time.LocalDate;
import java.time.Month;
import java.time.YearMonth;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class Main {
	public static void main(String[] args) {
		// Test
		getDateList(2017, "February").forEach(System.out::println);
		System.out.println("=*==*==*=*=");
		getDateList(2016, "February").forEach(System.out::println);
	}

	static List<LocalDate> getDateList(int year, String monthname) {
		int month = Month.valueOf(monthname.toUpperCase()).getValue();
		
		return IntStream
				.rangeClosed(1, YearMonth.of(year, month).lengthOfMonth())
				.mapToObj(i -> LocalDate.of(year, month, i))
				.collect(Collectors.toList());
	}
}