Scanner scan = new Scanner(System.in); double numbers = scan.nextDouble(); double[] avg =..????
Scanner scan = new Scanner (System.in); for (int i=0; i<=4, i++){ System.out.printf("Enter value at index"+i+" :"); anArray[i]=scan.nextInt(); }