Program needs to be written in Java. It will run innotepad++.
Create an application containing an array that stores eightintegers. The application should call five methods that inturn:
- Display all the integers
- Display all the integers in reverse order
- Display the sum of the integers
- Display all values less than a limiting argument
- Display all values that are higher than the calculated averagevalue
Answer
import java.util.Scanner;
public class ArrayEx {
public static void main(String[] args) {
int arr[] = new int[8];
Scanner sc = newScanner(System.in);
System.out.println(“Enter 8 numbers”);
for (int i = 0; i < 8;i++)
arr[i] =sc.nextInt();
int total
OR
OR