I would use 2 StringTokenizers. The first one would us a comma to break your string in to "name=value" elements. Then, for each element, the easiest thing to do would be to either use another StringTokenizer (fast, not efficient) to break the "name=value" strings. You could do it the harder way by looking for an '=' as well.
No comments:
Post a Comment