tokenizing objects in a list
Hi i have a list of object, in the form emailAddress=float, like below
[anne@gmail.com=3.245392,steven@hotmail.com=0.32849...]
What i need to do is split these objects up so that i just have the email address, so in this example i would just have
anne and steven
I have been trying to use a string tokenizer and splitting the object at the = sign
List list1 =new ArrayList();
Iterator it = likely.iterator();
while(it.hasNext()){
Object e = (Object)it.next();
StringTokenizer st =new StringTokenizer((String)e," =");
while(st.hasMoreTokens())
list1.add(st.nextToken());
}
System.out.println("List " + list1);
This however is not working, does anybody know of a way i can implement this, id appreciate any help
Thanks

