//File:	TestNumberList1.java
import iostuff.*;
public class TestNumberList1
{
	public static void main (String [] args)
	{
		int [] number = new int [10];	//Makes room for 10 int's.
						//labelled number[0], number[1], ... number[9]
		
		//Note:  If the number of items in your list, n, is smaller than 10
		//	then the remaining unoccupied locations represent "wasted"
		//	space.
		System.out.print ("How many numbers in your list (up to 10)? ");
		int n=Keyboard.readInt();
		for (int k=0; k<n; k++)
		{
			System.out.print ("Number please: ");
			number[k] = Keyboard.readInt();
		}
		
		
		System.out.println ("The list of numbers is: "  );
		NumberList.display(number);
		
		System.out.println ("The smallest number in the list is:  "
							+ NumberList.smallest (number));
							
		System.out.println ("The average of the list of numbers is: "
							+ NumberList.average (number));
	}
}