Hello,
I have a requirement where i query the data with select statement, then check if these results exist in other table, if not, then insert them in it. This is what im thinking. I declare member varibles in the class called
String name, String age. and then when i get my resultset through the select statement, i create a new object of the class and store that object in the arraylist, so everytime, i can check if the value already exists by using the contains(object) method in the arraylist like this.
I have just wrote this sample program here, so if there are any compile problems here, i could solve that (thats not what i'm worried about). My question is : is this a good approach to fulfill my requirement, if not, could someone please guide me towards a better approach. Also, im stuck using jdk1.3(it could be jdk 1.2, not sure) and can't upgrade it. Any replies would be greatly appreciated, thanks a lot for your time.
Mala