public class Wrapper
{
	public static void main(String[] args)
	{
		// declare object array

		Object[] x = new Object[5];


		// fill array with primitive data types
		// using wrapper classes

		x[0] = new Integer(1);
		x[1] = new String("hi");
		x[2] = new Character('c');
		x[3] = new Double(2.03);
		x[4] = new Boolean(true);


		//display array contents polymorphically

		for (int i=0; i<x.length; i++)
	    	{
			System.out.println(x[i]);
		}
	}
}