摘要: package com.chongrui.test; /* *Break 是直接中止循环 *continue 只能运用在for while do ...while循环语句当中,用于让程序直接跳过后面的语句,进行下一次的循环 *return语句比较 * 输出10以内的全部奇数 * * */ publi 阅读全文
posted @ 2017-01-11 17:14 tantanba 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test; /* *Break 是直接中止循环 *continue 只能运用在for while do ...while循环语句当中,用于让程序直接跳过后面的语句,进行下一次的循环 *return语句比较 * 求1到100之甩的连续的整理加起的和 * * * 阅读全文
posted @ 2017-01-11 16:59 tantanba 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://www.wangwenxiao.com/weixin/wxgzptoauth2_0wysq_12.html 阅读全文
posted @ 2017-01-02 21:02 tantanba 阅读(108) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/* *使用FOR做九九税法表 * * * */public class test { public static void main(String[] args) { // TODO Auto-generated method stub //外层 阅读全文
posted @ 2017-01-01 18:03 tantanba 阅读(104) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/* *使用while循环遍历数组 * * * */public class test { public static void main(String[] args) { // TODO Auto-generated method stub St 阅读全文
posted @ 2017-01-01 17:34 tantanba 阅读(920) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/* * for(元素变量x:遍历对象obj){ * 引用X的java语句 * * } * * * */public class test { public static void main(String[] args) { // TODO Aut 阅读全文
posted @ 2017-01-01 17:26 tantanba 阅读(204) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/*while语句的一般形式如下:while(表达式)语句表达式为非0值,执行while中内嵌语句.它是先判断表达式,在根据表达式值,执行语句.do_while语句的一般形式如下:do循环体语句while(表达式);它的特点是先执行循环体语句,然后 阅读全文
posted @ 2017-01-01 16:34 tantanba 阅读(148) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/*while用法一例 * *///import java.util.Scanner;public class TypeConvertion { public static void main(String[] args){ //public st 阅读全文
posted @ 2016-12-27 23:32 tantanba 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/*为新员工分配部门 * */import java.util.Scanner;public class TypeConvertion { public static void main(String[] args){ Scanner scan = 阅读全文
posted @ 2016-12-27 23:11 tantanba 阅读(223) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;/*验证信息登陆的合法性 * */import java.util.Scanner;public class TypeConvertion { public static void main(String[] args){ Scanner scan 阅读全文
posted @ 2016-12-27 22:49 tantanba 阅读(118) 评论(0) 推荐(0) 编辑