Solution to Question 2. (if you meant the average of the two middle integers).
import java.util.*;
public class App {
public static void main(String[] args) {
ArrayList<Integer> arrayNums = new ArrayList<>(); //creating ArrayList
Random randomInt = new Random(); //creating...