Java Year Current getCurrentYear()

Here you can find the source of getCurrentYear()

Description

get Current Year

License

Open Source License

Declaration

public static String getCurrentYear() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Calendar;

public class Main {
    public static String getCurrentYear() {

        int year = Calendar.getInstance().get(Calendar.YEAR);

        String currentYear = String.valueOf(year);

        return currentYear;
    }// www.  j  a  v  a2 s . co  m
}

Related

  1. currentYear()
  2. currentYear()
  3. getCurMonthDayNumber(String strYear, String strMonth)
  4. getCurrentYear()
  5. getCurrentYear()
  6. getCurrentYear()
  7. getCurrentYear()
  8. getCurrentYear()
  9. getCurrentYear()