Check out StringTokenizer class. It basically creates an enumeration of the tokens inside a delimited
string.
i.e.:
StringTokenizer st = new StringTokenizer("A=1,B=2,C=3",",")
Whilte (st.hasMoreTokens())
{
System.out.println(st.nextToken())
}
Would give you the following output:
A=1
B=2
C=3