黑马学习日志
来源:互联网 发布:国际网络应该受管制 编辑:程序博客网 时间:2024/06/04 23:35
/*test switch snatex
solution:
1.creat a varible to store the input of user ;
2.use "switch" determine the number
*/
class switchtest
{
public static void main(String[] args)
{
int x=3;
switch(x)
{
case 12:
case 1:
case 2:
System.out.println(x+"is spring");
break;
case 3:
case 4:
case 5:
System.out.println(x+"is summer");
break;
case 7:
case 6:
case 8:
System.out.println(x+"is autum");
break;
case 9:
case 10:
case 11:
System.out.println(x+"is winter");
break;
default:
System.out.println(x+"is null");
}
}
solution:
1.creat a varible to store the input of user ;
2.use "switch" determine the number
*/
class switchtest
{
public static void main(String[] args)
{
int x=3;
switch(x)
{
case 12:
case 1:
case 2:
System.out.println(x+"is spring");
break;
case 3:
case 4:
case 5:
System.out.println(x+"is summer");
break;
case 7:
case 6:
case 8:
System.out.println(x+"is autum");
break;
case 9:
case 10:
case 11:
System.out.println(x+"is winter");
break;
default:
System.out.println(x+"is null");
}
}
- 黑马学习日志
- 黑马程序员-----多线程学习日志
- 黑马程序员-学习日志Day01
- 黑马程序员-学习日志Day02
- 黑马程序员-学习日志-javascrip
- 黑马程序员-学习日志-javascript
- 黑马程序员-学习日志-多线程
- 黑马程序员-学习日志-PropertiesDemo
- 黑马程序员-学习日志-RandomAccessFile
- 黑马程序员-学习日志-ByteArrayInputStream
- 黑马程序员--学习日志--反射
- 黑马程序员 - 学习日志 - xml
- 黑马程序员-学习日志10
- 黑马程序员-学习日志01
- 黑马程序员-学习日志02
- 黑马程序员-----关于IO流学习日志
- 黑马程序员-----网络编程学习日志
- 黑马程序员-----反射的学习日志
- 情绪的色彩:用不同的颜色来描述幸福与抑郁
- 文件读写: 二进制方式和文本方式的区别
- Linux下mknod的作用
- oracle实验环境
- 浅析js选项卡(第一种)
- 黑马学习日志
- 谈谈移动应用设计——从一个普通开发者的角度
- ubuntu12安装ibus拼音输入法
- 对象与资源
- JAVA集合
- Thinking in Java之ArrayList、Vector比较分析
- Shell脚本学习(二):条件语句与循环语句
- 在Web开发中使用多点触碰技术
- 利用run-as命令在不root情况下读取data下面的sqlite数据