Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Main {
    public static void main(String[] args) {
        LocalDate localDate = LocalDate.of(2014, 6, 21);
        System.out.println(localDate);

        LocalDateTime localTime1 = localDate.atStartOfDay();
        System.out.println(localTime1);

        LocalDateTime localTime2 = localDate.atTime(16, 21);
        System.out.println(localTime2);
    }
}