2015年12月6日
摘要: public class JiDan { public static void main(String[] args) { // TODO 自动生成的方法存根 // 公鸡 a = 2;母鸡 b = 1; 小鸡 c = 0.5; // 用100文钱,买1... 阅读全文
posted @ 2015-12-06 22:32 halooomo 阅读(120) 评论(0) 推荐(0) 编辑
摘要: package maopao;public class maopao { public static void main(String[] args) { // 冒泡排序 int[] array = { 48, 38, 65, 97, 76, 13, 27, 19 ... 阅读全文
posted @ 2015-12-06 22:30 halooomo 阅读(131) 评论(0) 推荐(0) 编辑
摘要: public class ZDSH { public static void main(String[] args) { int[] a = new int[] { 10, 77, 45, 34, 56 }; int b = 0; for (int i... 阅读全文
posted @ 2015-12-06 22:29 halooomo 阅读(116) 评论(0) 推荐(0) 编辑
摘要: public class XQ { public static void main(String[] args) { int sum = 0; for(int i = 1; i <= 100;i++) { if((i % 7 =... 阅读全文
posted @ 2015-12-06 22:28 halooomo 阅读(400) 评论(0) 推荐(0) 编辑
  2015年12月4日
摘要: public class XQ { public static void main(String[] args) { for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ Sys... 阅读全文
posted @ 2015-12-04 22:13 halooomo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: public class JCH { public static void main(String[] args) { //数组 int[] a = new int[3]; a[0] = 1; a[1] = 2; ... 阅读全文
posted @ 2015-12-04 21:53 halooomo 阅读(213) 评论(0) 推荐(0) 编辑
  2015年12月3日
摘要: package tijian;public class TiJian { public static void main(String[] args) { double TZ = 80; double SG = 186... 阅读全文
posted @ 2015-12-03 22:01 halooomo 阅读(115) 评论(0) 推荐(0) 编辑
摘要: public class TuXing { public static void main(String[] args) { int i, j, k; for (i = 1; i <= 5; i++) { for (j = 1; j <= 5 ... 阅读全文
posted @ 2015-12-03 21:44 halooomo 阅读(445) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { System.out.println("Test is ok"); // t 由客户输入的值 int t = 100; ... 阅读全文
posted @ 2015-12-03 21:42 halooomo 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 阶乘是基斯顿·卡曼(Christian Kramp,1760~1826)于 1808 年发明的运算符号,是数学术语。 一个正整数的阶乘(英语:factorial)是所有小于及等于该数的正整数的积,并且有0的阶乘为1。自然数n的阶乘写作n!。1808年,基斯顿·卡曼引进这个表示法。 亦即n!=1×2... 阅读全文
posted @ 2015-12-03 21:40 halooomo 阅读(872) 评论(0) 推荐(0) 编辑