Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.LocalDate;
import java.time.Month;
import java.time.temporal.ChronoUnit;

public class Main {
    public static void main(String[] args) {

        LocalDate startEmployment = LocalDate.of(2011, Month.FEBRUARY, 1);

        LocalDate today = LocalDate.now();

        long numberOfDays = startEmployment.until(today, ChronoUnit.DAYS);

        System.out.println(String.format("%d", numberOfDays));

    }
}