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); } } }