Fill in the gap with Java language Complete the following program as runnable.
- Fill in the gap with Java language
- Complete the following program as runnable.
public class Final {
public static void main(String[] args) {
// Declare and create an array
int[] myArray = createArray();
// a) Invoke the method that displays the array System.out.println("My integers are:");
// b) Invoke the method that displays the even integer numbers above the average
}
// c) Please write createArray() method
public static ____________________________ {
// Declare an array of integers and create it. (The array size is 100)
// Create integers randomly (1-100) and assign
// them to the array
// Return the array
}
// d) Please write a method that displays the array of integers
public static ______________________________{ }
// e) Please write a method that returns the average of the integers
public static _________ averageOfIntegers(__________________){
return _____________ ;
}
/* f) Please write a method that displays the even integer numbers above the average (please invoke the averageOfIntegers method within this method) */
public static ______________________________________{
}
}

Step by step
Solved in 2 steps with 1 images









