标签:
输入月份,返回季节
1.程序代码
2.技巧方面:
1.使用Scanner类进行键盘录入
Scanner scanner=new Scanner(System.in);
int x=scanner.nextInt();
2.if方面的考虑
排除两边的季节数字
3.待修改的方面:
1.try的处理
可以自定义异常,以及写入异常的message
原文地址:http://www.cnblogs.com/juncaoit/p/5934010.html