How to subtract two Vector (of string arrays) ? : JAVA
Posted on 2005-03-19
I will have two JDBC query and I want to store the results in two Vectors.
The two vectors will have some common elements.
I would like to subtract once vector from the other.
Here is the code snippet:
>>I will have a Vector that holds all the classes taken by a student,
and I will have another Vector that holds all the classes that are required.
I want to find out the required classes that are not taken by the student.
Thus I will need to subtract one vector from the other.
Assuming Vector A holds all the required classes taken by the student,
and Vector B holds all the required classes for the student.
How do I subtract Vector A from Vector B.
BOTH MY VECTORS HOLD ARRAYS OF STRINGS.