摘要: package com.AoChenguang.Array;import com.sun.media.sound.AiffFileReader;public class ArrayDemon { public static void main(String[] args) { int [] nums 阅读全文
posted @ 2020-06-04 17:42 光光1234 阅读(117) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { System.out.println(f(1000)); }public static double f(double n){ if (n==1){ return 1; }else { return (n*f(n-1) 阅读全文
posted @ 2020-06-02 19:31 光光1234 阅读(105) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) {printmax(34,3,2,5,67);printmax(new double[]{1,2,3}); } public static void printmax(double...number){ if (numbe 阅读全文
posted @ 2020-06-02 18:13 光光1234 阅读(166) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { int B = max(10, 10); System.out.println(B); } public static int max(int num1,int num2){ int A= 0; if (num1>nu 阅读全文
posted @ 2020-05-29 17:52 光光1234 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package com.AoChenguang.Struct;public class ContiueDemon { public static void main(String[] args) { int i =0; while (i<100){ i++; if (i%10==0){ System 阅读全文
posted @ 2020-05-28 12:25 光光1234 阅读(402) 评论(0) 推荐(0) 编辑
摘要: package com.AoChenguang.Struct;public class WhileDemon { public static void main(String[] args) { double i=0.0; double M=0.0; while (i<100000000.0){ i 阅读全文
posted @ 2020-05-27 18:19 光光1234 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Case:穿透 。 Switch:匹配一个具体的值。 break:组织case继续执行。 public static void main(String[] args) { String name = "胡二刀"; switch (name){ case"敖晨光": System.out.printl 阅读全文
posted @ 2020-05-27 17:53 光光1234 阅读(372) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("亲输入成绩"); double sorce = scanner.nextDouble(); i 阅读全文
posted @ 2020-05-27 14:13 光光1234 阅读(227) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int i=0; float f=0.0f; System.out.println("请输入整数:"); if (scanner.ha 阅读全文
posted @ 2020-05-27 12:30 光光1234 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-27 10:33 光光1234 阅读(122) 评论(0) 推荐(0) 编辑