Two class program with a UI class with the main method and a manager class with the needed methods. /* The UI class * Generates 6 random numbers and stores them in an array. */ package arrayrandomscanner5; public class ArrayRandomScanner5UI { public static void main(String[] args) { ArrayRandomScanner5Manager am = new ArrayRandomScanner5Manager(); System.out.println("Array Random Scanner UI"); am.fillRandom(); am.displayRandomArray(); } // end main } // ============================================================================= /* The manager class. * Generates 6 random numbers and stores them in an array * Method 1 - generates the random numbers and stores into the array * Private helper method - assits with the generation of the random numbers * Method 2 - print out the array of random numbers */ package arrayrandomscanner5; public class ArrayRandomScanner5Manager { private int[] randomArray = new int[6]; public void fillRandom() { for (int i = 0; i < randomArray.length; i++) { int theRandomNumber = generateRandom(); randomArray[i] = theRandomNumber; } } // end fillRandom //========================================================================= public void displayRandomArray() { for (int i = 0; i < randomArray.length; i++) System.out.println(randomArray[i]); } // displayRandomArray // ======================================================================= // This helper method is private to the manager class and generates the // random number for the calling method private int generateRandom() { int randomNumber = (int)(Math.random() * 10) + 1; return randomNumber; } }