摘要: switch 语句int x = 10switch(x) case 1:print(“sfsd”)breakcase 2:print(“dsdf”)breakdefaultprint(“right”)break 阅读全文
posted @ 2014-05-14 21:30 梅兴昊 阅读(133) 评论(0) 推荐(0) 编辑
摘要: java中的局部变量只能用在当前的方法和当前代码块有效。java中的声明常量用final关键字进行限定。java的数据类型:1数值型——{整数型(byte,short,int,long)浮点型(float,double)}2字符型(1.char型2.转义字符)3布尔型 阅读全文
posted @ 2014-05-14 14:51 梅兴昊 阅读(107) 评论(0) 推荐(0) 编辑
摘要: while for if 循环 阅读全文
posted @ 2014-05-06 16:58 梅兴昊 阅读(90) 评论(0) 推荐(0) 编辑