//输入数字个数来产生数字并且比较大小 import java.util.Scanner;public class Test1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("请输入你要输入的数字个数:"); int num = sc.nextInt(); int[] ar…
select max(ss.size_GB), avg(ss.size_GB) from (select s.*, rownum rn2 from (select a.* from (select t1.*, rownum rn from (SELECT TRUNC(FIRST_TIME) time, SUM(BLOC…
1.直接遍历数组 ,,,,,,,]; ]; ;i<arr.length;i++){ if(max<arr[i]) max=arr[i]; } 2.借用Math的方法 ,,,,,,,]; var max = Math.max.apply(Math,arr); 取最小值反之: 3.数组平均值 var arr = [5,8,2,3,7,6,9,1,4,8,3,0]; var sum=0; for(var i = 0; i < arr.length; i++){ sum += arr[i]; }…