编程作业 – 选择
( 随机月份)编写一个随机产生1 和 12 之间整数的程序,并且根据数字12 显示相应的英文月份:January,February,…,December。 public class Test { public static void main(String[] args){ //程序说明:随机产生1-12之间的数,并显示相应英文月份 //产生随机数 int y = (int)(Math.random() * 12 + 1); //显示相应英文月份 switch(y){ case 1: System.out.println(1…