public class Kebiancanshu { public static void main(String[] args) { System.out.println(average(8, 2, 3, 4, 5, 6, 7, 8, 1)); System.out.println(average(3,5,6,7)); } public static double average(int n,int... nums) { int sum = 0; for (int num : nums) {