import java.util.Vector;
class x { int a=1; void foo() {System.out.println("X"); }}
class y extends x {int b = 2; void foo() {System.out.println("Y"); }}

class HelloWorldApp {
	public static void main (String args[]) {
		x x1 = new x();
		y y1 = new y();

		x1 = y1;
		y1.foo();
		x1.foo();

		Vector v = new Vector(); 
		Integer I = new Integer(63);
		System.out.println("Hello Capacity " + v.capacity());
		v.addElement(I);
		System.out.println("Size " + v.size());
		v.addElement(new Float("3.12"));
		System.out.println("Size " + v.size());
		Object o[] = new Object[1];
		v.copyInto(o);
		System.out.println("Hello Capacity " + v.indexOf(I));

		int i = 10;
		long l = 10;
		short s = 10;
		byte b= 10;

		Vector a;

		a = new Vector(i);
		a = new Vector(b);
		//a = new Vector(l);
	}
}
