摘要: ##数组的定义 数组是相同类型数据的有序集合。 数组描述的是相同类型的若干个数据,按照一定的先后次序排列组合而成。 其中,每一个数据称作一个数组元素,每个数组元素可以通过一个下标来访问他们。 ##数组的声明和创建 首先必须声明数组变量,才能在程序中使用数组。下面是声明数组变量的语法: date Ty 阅读全文
posted @ 2021-09-22 17:10 亮闪闪的鱼 阅读(52) 评论(0) 推荐(0) 编辑
摘要: package wei.Demo50; public class Digui { public static void main(String[] args) { System.out.println(f(3)); } public static int f(int n){ if (n==1){ r 阅读全文
posted @ 2021-09-18 08:28 亮闪闪的鱼 阅读(5) 评论(0) 推荐(0) 编辑
摘要: public class Demo02 { public static void main(String[] args) { Demo02 demo02 = new Demo02(); demo02.test(1,5,5,5,5,5,5,5,5); System.out.println(" "); 阅读全文
posted @ 2021-09-10 13:54 亮闪闪的鱼 阅读(25) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2527717/202109/2527717-20210910082203067-435445910.png) ![image](https://img2020.cnblogs.com/blog/2527717/202109/2527717-20210910082208685-1620795092.png) ![i 阅读全文
posted @ 2021-09-10 13:53 亮闪闪的鱼 阅读(15) 评论(0) 推荐(0) 编辑
摘要: public class Demo01 { public static void main(String[] args) { int Max = max(5,6); System.out.println(Max); } //比大小 public static int max(int num1,int 阅读全文
posted @ 2021-09-10 08:19 亮闪闪的鱼 阅读(26) 评论(0) 推荐(0) 编辑
摘要: public class SanjiaoDemo01 { public static void main(String[] args) { for (int i = 1; i <= 5; i++) { for (int j = 5; j >=i; j--) { System.out.print(" 阅读全文
posted @ 2021-09-09 13:32 亮闪闪的鱼 阅读(26) 评论(0) 推荐(0) 编辑
摘要: public class breakDemo01 { public static void main(String[] args) { int a = 0; while(a<20){ a++; if (a==10){ System.out.println(""); continue; } Syste 阅读全文
posted @ 2021-09-09 12:52 亮闪闪的鱼 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 压缩包 阅读全文
posted @ 2021-09-07 16:28 亮闪闪的鱼 阅读(9) 评论(0) 推荐(0) 编辑
摘要: While 循环 public class WhileDome01 { public static void main(String[] args) { // int a = 101; // int b = 50; // int c = 2; // System.out.println(101*50 阅读全文
posted @ 2021-09-07 14:57 亮闪闪的鱼 阅读(29) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2527717/202109/2527717-20210907110723314-1770213271.png) ![image](https://img2020.cnblogs.com/blog/2527717/202109/2527717-20210907110802855-2007248766.png) ![ 阅读全文
posted @ 2021-09-07 11:13 亮闪闪的鱼 阅读(78) 评论(0) 推荐(0) 编辑