> karthika schrieb:
> > i have two things one is vector (vec) and a map ( map ) and the code
[quoted text clipped - 6 lines]
>
> Timo
Sorry Timo,
Its not "info" The corrected code will be
for ( int i = 0;i<vec.size() ;i++ )
{
Class obj = ( Class )vec.get( i );
for ( Iterator it = map.keySet().iterator();it.hasNext();)
{
key = (String)it.next();
Class2 obj2 = ( Class2 )map.get( key );
if (!vec.contains(obj2))
{
v1.add(obj);
}
else
v1.remove(obj);
}
}
}
Timo Stamm - 05 Jul 2006 15:21 GMT
karthi schrieb:
>> karthika schrieb:
>>> i have two things one is vector (vec) and a map ( map ) and the code
[quoted text clipped - 25 lines]
>
> }
Sorry, I still don't know what you want to achieve.
You should explain what you want to do, and where your program fails. It
also would help (us _and_ you) to use meaningful variable names.
Timo