package 月份输出;
import java.util.*;
public class 月份输出 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int s = sc.nextInt();
String a[] = {"January","February","March","April","May","June","July","August","September","October","December"};
switch(s)
{
case 1: System.out.println(a[0]); break;
case 2: System.out.println(a[1]); break;
case 3: System.out.println(a[2]); break;
case 4: System.out.println(a[3]); break;
case 5: System.out.println(a[4]); break;
case 6: System.out.println(a[5]); break;
case 7: System.out.println(a[6]); break;
case 8: System.out.println(a[7]); break;
case 9: System.out.println(a[8]); break;
case 10: System.out.println(a[9]); break;
case 11: System.out.println(a[10]); break;
case 12: System.out.println(a[11]); break;
}
}
}
JAVA课程09
点赞
收藏