Here you can find the source of getReportMonthString()
public static String getReportMonthString()
//package com.java2s; //License from project: Open Source License import java.text.DateFormatSymbols; import java.util.Calendar; import java.util.Locale; public class Main { public static String getReportMonthString() { DateFormatSymbols dfs = new DateFormatSymbols(new Locale("ro")); String[] months = dfs.getMonths(); if (Calendar.getInstance().get(Calendar.MONTH) > 0) { return months[Calendar.getInstance().get(Calendar.MONTH) - 1]; } else {/* ww w . j a v a 2s. c o m*/ return months[11]; } } public static String getReportMonthString(int month) { DateFormatSymbols dfs = new DateFormatSymbols(new Locale("ro")); String[] months = dfs.getMonths(); return months[(month - 1)]; } }