程序代码:
public class Test { public static void main(String[] args) { String[] month= {"January","February","March","April","May", "June","July","Auguest","September","October","November","December"}; for(int i=1;i<12;i++) { for(int j=i;j>0;j--) { System.out.println(month[i-1]); } } } }