Java Year Current getYear()

Here you can find the source of getYear()

Description

get Year

License

Apache License

Declaration

public static String getYear() 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Calendar;

public class Main {
    private static Calendar calendar = Calendar.getInstance();

    public static String getYear() {
        return calendar.get(Calendar.YEAR) + "";
    }//ww w  .j a  v  a2s  .c  om
}

Related

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