上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: package com.Summer_0421.cn; import java.util.Arrays; /** * @author Summer * 数组升序排序的方法Arrays.sort();应用 */ public class Test01 { public static void main(String[] args) { int [] a = {2... 阅读全文
posted @ 2019-04-21 14:40 Geek张东坡 阅读(2368) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; import java.util.Arrays; /** * @author Summer * copyOfRange的应用 */ public class TestMethod07 { static int [] a = {1,2,3,4,5,6,7,8,9,10}; public static void mai... 阅读全文
posted @ 2019-04-20 22:53 Geek张东坡 阅读(710) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; import java.util.Arrays; /** * @author Summer * 我们使用数组存储了50名学生的考试信息 , 今天又增加了三名同学 , 请扩大存储介质 , 足以存储53名学生信息 */ public class TestMethod06 { static int [] score = new ... 阅读全文
posted @ 2019-04-20 22:46 Geek张东坡 阅读(757) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; import java.util.Arrays; /** * @author Summer * binarySearch(int[] a,int fromIndex,int toIndex, int key)的用法(测试) */ public class TestMethod05 { public static void... 阅读全文
posted @ 2019-04-20 22:36 Geek张东坡 阅读(431) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; import java.util.Arrays; /** * @author Summer * 二分法binadySearch的用法(测试) */ public class TestMethod04 { public static void main(String[] args) { int [] a = ... 阅读全文
posted @ 2019-04-20 22:29 Geek张东坡 阅读(301) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; /** * @author Summer * 获取数值型数组中大于60的元素个数 * 给数值型数组中不足60分的加20分 */ public class TestMethod02 { public static void main(String[] args) { int [] a = {1,35,60,... 阅读全文
posted @ 2019-04-20 20:22 Geek张东坡 阅读(752) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0420.cn; /** * @author Summer * .获取数值型数组的最大值、最小值 * 方法:遍历获取每一个值,记录最大值; * 方法:遍历获取每一个值,记录最小值; */ public class TestMethod01 { public static void main(String[] args) { ... 阅读全文
posted @ 2019-04-20 19:51 Geek张东坡 阅读(674) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0419.cn; /** * @author Summer * 获取数值型数组的平均值 */ public class Test_Method14 { public static void main(String[] args) { double[] a = { 100, 12, 102, 180, 13, 15.1... 阅读全文
posted @ 2019-04-19 23:29 Geek张东坡 阅读(634) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0419.cn; /** * @author Summer * 获得数值型数组的所有元素之和 */public class Test_Method13 { public static void main(String[] args) { double[] a = 阅读全文
posted @ 2019-04-19 23:18 Geek张东坡 阅读(599) 评论(0) 推荐(0) 编辑
摘要: package com.Summer_0419.cn; /** * @author Summer * 通过随机数获得学生成绩,并把每个元素赋值为学生的分数成绩 */ public class Test_Method12 { static int [] score = new int[25];//动态声明一个25个空间的数组 public static void main(... 阅读全文
posted @ 2019-04-19 22:56 Geek张东坡 阅读(551) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页