DB2Problem
Programmer
Hello ALL,
I have some values in vector say {501, 502}.
Now I have an array of Integer that gets SOME, ALL or NONE values that are in the above vector.
My problem is to check if the values coming from this dynamic array exits in the vector.
Based on presence and absence I have to do some processing. If the value doesn't exits I have to insert in
Database , but if one of the values exists then I have to perform update
But the bottom line is - Iterate the array and check if the values exits in the vector
There can be 3 possibilities
1. All values Exists
2. Some values exists
3. Doesn't exists AT all
Integer a [] = new Integer (); // this is dynamic integer array
Vector a = new Vector (); // this is vector that has some integer values
I have some values in vector say {501, 502}.
Now I have an array of Integer that gets SOME, ALL or NONE values that are in the above vector.
My problem is to check if the values coming from this dynamic array exits in the vector.
Based on presence and absence I have to do some processing. If the value doesn't exits I have to insert in
Database , but if one of the values exists then I have to perform update
But the bottom line is - Iterate the array and check if the values exits in the vector
There can be 3 possibilities
1. All values Exists
2. Some values exists
3. Doesn't exists AT all
Integer a [] = new Integer (); // this is dynamic integer array
Vector a = new Vector (); // this is vector that has some integer values