Reading material

Page 186 (Section 5.1.1), pages 194-198 (Section 5.2.1-5.2.3), page 206 (Section 5.3.1), pages 214-218 (Section 5.5-5.6), pages 229-236 (Section 6.1-6.1.3), pages 247-248 (Section 6.3.1-6.3.2), pages 171-172 (Section 4.4.3).

Additional material

Interfaces

java.util.Iterator
java.util.Vector

DequeStack

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?