import javax.swing.*; public class ArrayTest { public static void main(String[] args) { int i; int size; int sum=0; double average; do { System.out.print("How big would you like this array to be (1-5): "); size = Integer.parseInt(JOptionPane.showInputDialog("Enter a # between 1 and 5:") ); } while (size <=0 || size>5); // Force the user to enter a number between 1 and 5 // Create the array object int[] arr = new int[size]; // Read in all the array values from the user for (i=0; i