Java Year Current getCurrYear()

Here you can find the source of getCurrYear()

Description

get Curr Year

License

Open Source License

Declaration

public static int getCurrYear() 

Method Source Code

//package com.java2s;
/*/* w  ww. j ava2 s .c om*/
 * 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 getCurrYear() {
        return new GregorianCalendar().get(Calendar.YEAR);
    }
}

Related

  1. getCurrentYear()
  2. getCurrentYear()
  3. getCurrentYearFirst()
  4. getCurrentYearMonth()
  5. getCurrentYearMonthDay()
  6. getCurrYearFirst()
  7. getLastDayOfCurrentYear()
  8. getYear()
  9. getYear()