DateFormatSymbols: getMonths() : DateFormatSymbols « java.text « Java by API






DateFormatSymbols: getMonths()

 
  
import java.text.DateFormatSymbols;

public class Main {
  public static void main(String[] args) {
    String[] months = new DateFormatSymbols().getMonths();
    for (int i = 0; i < months.length; i++) {
      String month = months[i];
      System.out.println("month = " + month);
    }

  }
}

   
  








Related examples in the same category

1.new DateFormatSymbols(Locale loc)
2.DateFormatSymbols: getShortWeekdays()
3.DateFormatSymbols: getWeekdays()
4.DateFormatSymbols: setEras(String[] newEras)
5.DateFormatSymbols: setShortWeekdays(String[] newShortWeekdays)