菜鸟的博客

纵有疾风起,人生不言弃。

导航

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 41 下一页

2023年7月19日 #

2023.7.19 周三:冒泡排序

摘要: 1 import java.sql.SQLOutput; 2 import java.util.Arrays; 3 import java.util.Scanner; 4 //冒泡排序 5 public class test { 6 public static void main(String[] 阅读全文

posted @ 2023-07-19 20:03 hhmzd233 阅读(13) 评论(0) 推荐(0)

2023年7月18日 #

2023.7.18 周二:Arrays类

摘要: 1 import java.sql.SQLOutput; 2 import java.util.Arrays; 3 import java.util.Scanner; 4 //Arrays类 5 public class test { 6 public static void main(String 阅读全文

posted @ 2023-07-18 21:27 hhmzd233 阅读(4) 评论(0) 推荐(0)

2023年7月17日 #

2023.7.17 周一:多维数组

摘要: 1 import java.sql.SQLOutput; 2 import java.util.Scanner; 3 //多维数组 4 public class test { 5 public static void main(String[] args) { 6 Scanner sc = new 阅读全文

posted @ 2023-07-17 11:29 hhmzd233 阅读(7) 评论(0) 推荐(0)

2023年7月16日 #

2023.7.16

摘要: 1 import java.sql.SQLOutput; 2 import java.util.Scanner; 3 //数组的使用 4 public class test { 5 public static void main(String[] args) 6 { 7 int[] arrays = 阅读全文

posted @ 2023-07-16 18:10 hhmzd233 阅读(9) 评论(0) 推荐(0)

2023年7月15日 #

2023.7.15

摘要: 1 //2023.7.15 周六 2 //数组 3 public class test { 4 public static void main(String[] args) 5 { 6 int[] array = new int[10];//数组的定义 7 //数组不赋值,默认值为0 8 int a 阅读全文

posted @ 2023-07-15 08:00 hhmzd233 阅读(42) 评论(0) 推荐(0)

2023年7月14日 #

2023.7.14

摘要: 1 2023.7.14 周五 2 //递归:适用于基数bi'ji 3 public class test 4 { 5 public static void main(String[] args) 6 { 7 8 System.out.println(f(5)); 9 } 10 public stat 阅读全文

posted @ 2023-07-14 20:18 hhmzd233 阅读(81) 评论(0) 推荐(0)

2023年7月13日 #

2023.7.13

摘要: 1 //2023.7.13 周四 2 //可变参数 3 //参数类型 ... 参数名 4 //!!!!一个方法中最多可以指定一个可变参数,且只能作为最后一个参数,例:public static void test(int x,double...c) 5 public class test 6 { 7 阅读全文

posted @ 2023-07-13 20:49 hhmzd233 阅读(31) 评论(0) 推荐(0)

2023年7月12日 #

2023.7.12

摘要: 1 //2023.7.12 周三 2 //方法声明和调用 3 public class test 4 { 5 public static void main(String[] args) 6 { 7 int sum = add(1,2); 8 System.out.println(sum); 9 } 阅读全文

posted @ 2023-07-12 19:41 hhmzd233 阅读(41) 评论(0) 推荐(0)

2023年7月11日 #

2023.7.11

摘要: 1 //2023.7.11 周二 2 //for循环 3 public class test 4 { 5 public static void main(String[] args) 6 { 7 //打印九九乘法表 8 for(int i = 1;i<=9;i++) 9 { 10 for(int j 阅读全文

posted @ 2023-07-11 20:34 hhmzd233 阅读(24) 评论(0) 推荐(0)

2023年7月10日 #

2023.7.10

摘要: 1 import java.util.Scanner; 2 3 public class test 4 { 5 public static void main(String[] args) 6 { 7 int i = 0; 8 int sum = 0; 9 10 while(i<100) 11 { 阅读全文

posted @ 2023-07-10 11:59 hhmzd233 阅读(11) 评论(0) 推荐(0)

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 41 下一页