9. 47. 38. Converting the vector to an array: public void copyInto(Object[] anArray)
import java.util.Vector;
import java.util.Vector;
public class MainClass { public static void main(String args[]) {
Vector v1 = new Vector();
v1.add("A");
v1.add("B");
v1.add("C");
String array[] = new String[v1.size()];
v1.copyInto(array);
for (int i = 0; i < array.length; i++) {
System.out.println(array[i]);
}
}
}