摘要: 1 public class shuzu19{ 2 //编写一个main方法 3 public static void main(String[] args){ 4 /* 5 随机生成10个整数(1-100的范围)保存到数组 6 并倒序打印以及求平均值、求最大值和最大值的下标、 7 并查找里面是否有 阅读全文
posted @ 2024-08-02 11:04 勤奋的小番茄 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1 public class shuzu18{ 2 //编写一个main方法 3 public static void main(String[] args){ 4 5 /* 6 已知有个升序的数组,要求插入一个元素,该数组顺序依然是升序,比如: 7 [10, 12, 45, 90],添加23后,数 阅读全文
posted @ 2024-08-02 10:31 勤奋的小番茄 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1 public class shuzu10{ 2 //编写一个main方法 3 public static void main(String[] args){ 4 5 /* 6 1 7 1 1 8 1 2 1 9 1 3 3 1 10 1 4 6 4 1 11 1 5 10 10 5 1 12 1 阅读全文
posted @ 2024-08-02 09:03 勤奋的小番茄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 public class shuzu10{ 2 //编写一个main方法 3 public static void main(String[] args){ 4 /* 5 int arr[][] = {{4,6},{1,4,5,7},{-2}};遍历该二维数组,并得到和 6 7 8 思路 9 1 阅读全文
posted @ 2024-08-02 08:19 勤奋的小番茄 阅读(1) 评论(0) 推荐(0) 编辑