上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页
摘要: package array; public class Demo01 { public static void main(String[] args) { test(); test3(); } public static void test() { int[] num1;//定义 声明数组 num1 阅读全文
posted @ 2021-07-30 08:29 阿向向 阅读(27) 评论(0) 推荐(0) 编辑
摘要: package method; /* 可变参数; 不定项;‘ */ public class Demo03 { public static void main(String[] args) { Demo03 demo03 = new Demo03(); demo03.test(1,2,3,4,7,5 阅读全文
posted @ 2021-07-30 08:28 阿向向 阅读(45) 评论(0) 推荐(0) 编辑
摘要: package method; /** * 阶乘 * <p> * <p> * 1! 1 * 2! 2*1 * 3! 3*2*1 * 5! 5*4*3*2*1 */ public class Demo06 { public static void main(String[] args) { Syste 阅读全文
posted @ 2021-07-30 08:26 阿向向 阅读(101) 评论(0) 推荐(0) 编辑
摘要: package method; public class Demo04 { public static void main(String[] args) { Demo04 demo04 = new Demo04(); demo04.printMax(456,454,4654.4,6.454,6544 阅读全文
posted @ 2021-07-30 08:23 阿向向 阅读(83) 评论(0) 推荐(0) 编辑
摘要: package method; public class Demo01 { public static void main(String[] args) { // 实参 int sum = add(1, 4); System.out.println(sum);//5 // int max = max 阅读全文
posted @ 2021-07-30 08:21 阿向向 阅读(8) 评论(0) 推荐(0) 编辑
摘要: package struct; public class TextDemo { public static void main(String[] args) { text(); text2(); } public static void text() { //打印三角形 5行 for (int i 阅读全文
posted @ 2021-07-29 09:59 阿向向 阅读(115) 评论(0) 推荐(0) 编辑
摘要: package struct; /* 质数 101 150 的所有质数 */ public class Demo11 { public static void main(String[] args) { outer: for (int i = 101; i < 150; i++) { for (in 阅读全文
posted @ 2021-07-29 09:57 阿向向 阅读(172) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo09 { public static void main(String[] args) { text(); } public static void text() { int[] nums = {10, 20, 30, 40, 50, 阅读全文
posted @ 2021-07-29 09:55 阿向向 阅读(66) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo08 { public static void main(String[] args) { for (int j = 1; j <= 9; j++) { for (int i = 1; i <= j; i++) { System.ou 阅读全文
posted @ 2021-07-29 09:49 阿向向 阅读(145) 评论(0) 推荐(0) 编辑
摘要: package struct; public class Demo07 { public static void main(String[] args) { int a = 1; int count=0; while (a <= 1000) { if (a % 5 == 0) { System.ou 阅读全文
posted @ 2021-07-29 09:48 阿向向 阅读(335) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页