[java] how to cast after clone()?
Vector a= new Vector();
Vector b= a.clone(); //1.
Vector b=(Vector) a.clone();//2.
Vector b=(Vector) a. clone(); //3
i have tried all the three ways of casting, but all of them will produce either an error or a warning. Can anyone suggest how to do casting in this case? thanks a lot in advance!
what is Vector<A> for?
Vector[]?