import java.util.*; public class VectorExample { public static void main(String[] args) { VectorIn this example, we create a Vector of String objects and insert some elements into it. We then use the insertElementAt method to insert a new element ("durian") at index 2. Finally, we print the updated vector to the console. The vector uses the java.util package.vector = new Vector<>(); // Inserting elements into vector vector.add("apple"); vector.add("banana"); vector.add("cherry"); vector.add("grape"); // Inserting a new element at index 2 vector.insertElementAt("durian", 2); System.out.println("Vector after inserting durian: " + vector); } }