As of
Java 5, the <E> syntax is the way that you declare a collection's type. Prior to Java 5 there was no way to specify the type of a collection.
In Java 5, if you are sure that your Vector (or in general your Collection) will contain only one type of objects say
String, then you decalre it as:
Vector <String> vec = new Vector <String> ();
vec.add("Hello");
[ April 12, 2007: Message edited by: P Lavti ]