/**
 * Numbers.java
 * 
 * @author Dave Musicant
 * 
 * This program shows how arrays of numbers work.
 */

public class Numbers
{ 
    public static void main(String args[])
    { 
        // Create an array of numbers 
        int arraySize = 10; 
        int[] numArray = new int[arraySize];
        
        // Fill the array with random integers 
        int i; 
        for (i=0; i < numArray.length; i++) 
            numArray[i] = (int)(Math.random()*50);

        // Display the integers to the screen 
        for (i=0; i < arraySize; i++) { 
            System.out.print(numArray[i]); 
            System.out.print(" "); 
        } 
        System.out.println();
    }
}