Java Year Get getNextYearMonthStr()

Here you can find the source of getNextYearMonthStr()

Description

get Next Year Month Str

License

Open Source License

Declaration

public static String[] getNextYearMonthStr() 

Method Source Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    private static final String[] monthStrArray = { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10",
            "11", "12" };

    public static String[] getNextYearMonthStr() {
        String ret[] = new String[12];

        Calendar c = Calendar.getInstance();
        int nextYear = c.get(Calendar.YEAR) + 1;
        for (int i = 0; i < monthStrArray.length; i++) {
            ret[i] = nextYear + monthStrArray[i];
        }/*from  w  w  w  .j  a v a  2s . co  m*/
        return ret;
    }
}

Related

  1. getFewYearsTime(String date, int year)
  2. getHalfYearEndDate(Date date)
  3. getLastDayOfYear(Date date)
  4. getNextYear()
  5. getNextYearFirst()
  6. getOfflimitDates(int year)
  7. getRandomDate(int firstYar, int lastYear)
  8. getSpecficYearEnd(Date date, int amount)
  9. getStartEndOFWeek(int enterWeek, int enterYear)