Hi all,
I have one Vector with result and I want to compare the first Element of the List with the next, and if the next is equal to first the next must be remove, but i dont know how?
Please help me!
Vector ligne = (Vector)result.elementAt(row);
List list= new ArrayList();
list.add(ligne.firstElement());
for (ListIterator i = list.listIterator(); i.hasNext(); ) {
String temp= (String)i.next();
String index= (String)i.previous();
if (index==null ? i.next()==null : index.equals(i.next())) {
i.remove();