数组常见操作
摘要:8.19 day7 数组常见操作 获取数组最值 public static int maxElement(int[] arr) { // 假设第一个元素的值就是最大值 int max = arr[0]; // 遍历数组元素,依次和假设的最大值作比较 for(int i = 1; i < arr.le
阅读全文
posted @ 2022-08-19 11:28
posted @ 2022-08-19 11:28
posted @ 2022-08-05 08:12
posted @ 2022-08-05 08:09
posted @ 2022-08-05 08:06