摘要:
public class Test04 { public static void main(String[] args) { int x,y,z;//x代表公鸡的数目,y代表母鸡的数目,z代表小鸡的数目 for(x=1;x<20;x++){//因为只有100钱,最多只能买20只公鸡,但是全买公鸡就达 阅读全文
posted @ 2016-07-03 01:55
我的MyBatis
阅读(521)
评论(0)
推荐(0)
摘要:
public class Test04 { public static void main(String[] args) { int t=0; //执行for循环,使循环间隔为2,从而之进行奇数操作 for(int i=1;i<=100;i+=2){ t+=i; //每次循环时,为表示总和的变量加上 阅读全文
posted @ 2016-07-03 01:50
我的MyBatis
阅读(724)
评论(0)
推荐(0)
摘要:
public class Test03 { public static void main(String[] args) { //定义了一个char型的数组a char[] a; //实例对象数组,长度为25 a = new char[26]; for (int i = 0; i < 26; i++ 阅读全文
posted @ 2016-07-03 01:39
我的MyBatis
阅读(734)
评论(0)
推荐(0)

浙公网安备 33010602011771号