Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.LocalDate;

public class Main {
    public static void main(String[] args) {
        LocalDate today = LocalDate.now();

        LocalDate nextYear = today.plusYears(1);

        System.out.println(String.format("Today %s and next year %s", today, nextYear));
    }
}