- 博客(13)
- 收藏
- 关注
原创 数组的基础操作
有一个int数组,要求获取:最大值、最小值、元素和、平均值public static void main(String[] args) { int[] file = {1, 3, 5, -2, 4, 6}; //最大值 int maxNum = getMax(file); System.out.println("最大值:" + maxNum); //最小值 int minNum ...
2022-07-07 19:35:17
166
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人