Win a copy of Head First Android this week in the Android forum!

Krassi Bogdanova

Greenhorn
+ Follow
since Mar 13, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Krassi Bogdanova

Thanks again,
but my results is :
Vector results = new Vector();
[LABA001]After: [LABA001] - Vector
[LABA001]After: [LABA001] - next Vector
[LABA002]After: [LABA002] - next Vector
[LABA003]After: [LABA003] - next Vector
[LABA003]After: [LABA003] - next Vector
and I don't know how to compaire the first Vector with the next etc.
19 years ago
Thanks Manfred,
the code remove all elements and I want display all elements without duplicates.
This Vector is the result of one Select and I dont know how many elemnts I will have and after the test if there exists duplicates I must print the result + the result of the SELECT.
19 years ago
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();
19 years ago