Java Year Get 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.*;

public class Main {

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

Related

  1. getYear()
  2. getYear()
  3. getYear()
  4. getYear()
  5. getYear()
  6. getYear(Date d)
  7. getYear(Date date)
  8. getYear(Date date)
  9. getYear(Date date)