public class ArrayTest
{
	public static void main(String[] args)
	{
		//Declare an int array variable called "nums"
		int[] nums;
		
		//Allocate memory for an array of ints of size 100 elements
		nums = new int[100];
		
		//Initialize the int array with data
		//See the lesson on loops for details on For Loops for now
		//just know that this loop will go from 0 to nums.length - 1 (99)
		
		//The i<nums.length will make this loop
		//go from ZERO to the size of the array -1
		//since we said i < (less than) the length...
		//We are basically TRAVERSING the array here.
		for (int i=0; i<nums.length; i++)
		{
			//Set array element at index "i"
			//equal to some "random number" just for th test...
			//Note: Math.random is a built in library function.
			//You can look this up on the Java Docs.
			//Look for the class: Math.
			//Here's a direct link:
			//http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html#random()
			nums[i] = (int)(Math.random()*100);
		}
		
		
		//Traverse the array and print out the numbers
		for (int i=0; i<nums.length; i++)
		{
			System.out.println("Array Element " + i + " = " + nums[i]);
		}
	}
}
