众数
import java.util.Arrays;
public class ModeDemo {
public static void main(String[] args) {
//int[] ary = {1,2,2,2,3,5};//作业题目
int[] ary = {1,5,8,2,1,4,7,4,2,5,9,6,3,2,1,4,7,8,5,5,8,8,5,8};
int[] a = ary2num(ary);
System.out.println("原始自然数序列为:" +
原创
2021-04-15 10:45:36 ·
104 阅读 ·
0 评论