
/*
	Tom DeDonno

	Demonstrates need to type cast parent Object class
	to correct child

 */
import java.util.Vector;

public class MyVector1 {

	public static void main( String[] args ) {

		Vector v = new Vector();
		String greeting = "Hi Mom!";
		v.addElement( greeting );

		System.out.println( "Length is " +
		(v.elementAt(0)).length() );

		//System.out.println( "Length is " +
		//((String)(v.elementAt(0))).length() );
		}
}

