How do you add an element to a `Vector` in Java?
You add an element by directly assigning it to the index using the `set(index, element)` method.
Thatâ€™s incorrect. The `set()` method is used to replace an element at a specific index, not to add a new one.
Can you explain how the `add()` method and `set()` method differ in their usage?