vector some problem with add some data

Dear all

if i had some data like this

String test = a , b ,c ,d ,a ,d

Vector v = new Vector;

v.add(test);

when i use vecotor to edit and then how the display

result like this

a, b, c, d

the data which i do not want to duplicate

[287 byte] By [roger5089a] at [2007-11-27 10:37:04]
# 1

Remove the original string and add the edited string.

sabre150a at 2007-7-28 18:45:41 > top of Java-index,Java Essentials,Java Programming...
# 2

would you please tell me how can i do it

that 's output

GPSmile 51 Series GPSmile 51 Series

a-

GPSmile 51 Series GPSmile 51 Series

a-

GPSmile 51 Series GPSmile 51 Series

a-

GPSmile 51 Series GPSmile 51 Series

a-

GPSmile 52 Series GPSmile 52 Series

a-

GPSmile 52 Series GPSmile 52 Series

a-

GPSmile 52 Series GPSmile 52 Series

a-

GPSmile 53 Series GPSmile 53 Series

a-

GPSmile 53 Series GPSmile 53 Series

code

Collections.sort(vitem);

String vitems = "";

String iiteims = "";

boolean check = false;

for(int z=0; z < vitem.size(); z++){

vitems = vitem.get(z).toString().trim();

iiteims = ITEMNAME[z].trim();

if(vitems.equals(iiteims)){

if(check == false){

System.out.println("a-");

System.out.println(vitems + " " + iiteims);

check = true;

}

check = false;

}

}//end for

i would like to change the output like this

GPSmile 51 Series GPSmile 51 Series

a-

GPSmile 52 Series GPSmile 52 Series

a-

GPSmile 53 Series GPSmile 53 Series

Message was edited by:

roger5089

roger5089a at 2007-7-28 18:45:41 > top of Java-index,Java Essentials,Java Programming...