Example usage for java.time Year plus

List of usage examples for java.time Year plus

Introduction

In this page you can find the example usage for java.time Year plus.

Prototype

@Override
public Year plus(TemporalAmount amountToAdd) 

Source Link

Document

Returns a copy of this year with the specified amount added.

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);
    Year l = y.plus(Period.ofYears(12));
    System.out.println(l);/*from   ww  w  .ja  v  a2s  . com*/

}