![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java语言程序设计 第七章课后题
文章平均质量分 52
差劲的厉害了
一个正在努力学习的大学生
展开
-
Java语言程序设计 7.26(完全相同的数组)
7.26 (Strictly identical arrays) The arrays list1 and list2 are strictly identicalif their corresponding elements are equal. Write a method that returns true if list1 and list2 are strictly identical, using the following header:public static boolean equals原创 2022-06-13 19:09:10 · 341 阅读 · 0 评论 -
Java语言程序设计 例题7.7(计算单个数字)
*7.7 (Count single digits) Write a program that generates 100 random integers between 0 and 9 and displays the count for each number. (Hint: Use an array of ten integers, say counts, to store the counts for the number of 0s, 1s, . . . , 9s.)*7.7(计算单个数字)编写一原创 2022-06-13 18:25:10 · 271 阅读 · 0 评论 -
Java语言程序设计 例题7.9(找到最小的元素)
7.9 (Find the smallest element) Write a method that finds the smallest element in anarray of double values using the following header:public static double min(double[] array)Write a test program that prompts the user to enter ten numbers, invokes this..原创 2022-05-18 00:16:03 · 537 阅读 · 0 评论 -
Java语言程序设计 例题7.8(数组的平均值)
7.8 (Average an array) Write two overloaded methods that return the average of anarray with the following headers:public static int average(int[] array)public static double average(double[] array)Write a test program that prompts the user to enter ten.原创 2022-05-17 23:59:39 · 631 阅读 · 0 评论 -
Java语言程序设计 例题7.1(指定等级)
*7.1 (Assign grades) Write a program that reads student scores, gets the best score,and then assigns grades based on the following scheme:Grade is A if score is >=best - 10Grade is B if score is >=best - 20;Grade is C if score is>=best - 30;Grade i...原创 2022-05-17 21:46:47 · 246 阅读 · 0 评论