Java Year Current getYear()

Here you can find the source of getYear()

Description

get Year

License

Open Source License

Declaration

public static int getYear() 

Method Source Code

//package com.java2s;

import java.util.Calendar;

public class Main {

    public static int getYear() {
        Calendar mycd = Calendar.getInstance();
        return mycd.get(Calendar.YEAR);
    }//from  w w w  . j  a  va  2  s.c  o  m
}

Related

  1. getCurrYearFirst()
  2. getLastDayOfCurrentYear()
  3. getYear()
  4. getYear()
  5. getYear()
  6. getYear()
  7. getYear()
  8. getYear()
  9. getYear()