新手使用Vector报错Vector is a raw type. References to ge

照着书上抄代码有下面一句
private Vector vector=null;
但是eclipse报错
Vector is a raw type. References to generic type Vector<E> should be parameteriz
后来网上搜索了解决办法,改成
private Vector<String> vector=null;
就好了,但是只能使用string类型,不能使用别的,我不太懂,有懂的大神,可以告知一下。