Java Year Get getNextYear()

Here you can find the source of getNextYear()

Description

get Next Year

License

Open Source License

Declaration

public static int getNextYear() 

Method Source Code

//package com.java2s;
/*// w w w .  jav a2s  .  c  o m
 * Copyright 2012-2014 sammyun.com.cn. All rights reserved.
 * Support: http://www.sammyun.com.cn
 * License: http://www.sammyun.com.cn/license
 */

import java.util.Calendar;

import java.util.GregorianCalendar;

public class Main {

    public static int getNextYear() {
        return new GregorianCalendar().get(Calendar.YEAR) + 1;
    }
}

Related

  1. getDateOneYearFromNow()
  2. getDaysFromYearZero(Calendar date)
  3. getFewYearsTime(String date, int year)
  4. getHalfYearEndDate(Date date)
  5. getLastDayOfYear(Date date)
  6. getNextYearFirst()
  7. getNextYearMonthStr()
  8. getOfflimitDates(int year)
  9. getRandomDate(int firstYar, int lastYear)