java.util.Iterator
java.util.Vector
Question
Complete the following methods.
/**
* Multiplies all the integers stored in the specified vector by 2.
*
* @param vector vector whose elements are integers.
*/
public static void double(Vector vector)
{
}
/**
* Multiplies all the integers stored in the specified list by 2.
*
* @param vector list whose elements are integers.
*/
public static void double(List list)
{
}
The method iterator of the class java.util.Vector returns an object of type java.util.Iterator. Of which class is this object an instance?