ok!
thx,i solve the problem...
i used if(vector.get(i)!=vector.get(i+1)) instead of if(!vector.get(i).equals(vector.get(i+1)) and that was problem...
later i tried with if(!vector.get(i).equals(vector.get(i+1)) and it worked fine...
but thx for help!
see you around!
