摘要: 1.while练习_累加思想:class WhileTest{ public static void main(String[] args) { /* 练习: 获取1到10 10个数字的和; 0 + 1 1 + 2 3 + 3 6 + 4 10 + 5 思路: 1.每次参与加法的数值不确定; 2.每... 阅读全文
posted @ 2013-03-27 17:55 馨云 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1.循环结构:代表语句:while,do while,for;I.while循环:class WhileDemo{ public static void main(String[] args) { /* while(条件表达式) { 执行语句; } */ int x = 1; wh... 阅读全文
posted @ 2013-03-27 10:01 馨云 阅读(140) 评论(0) 推荐(0) 编辑