J M wrote:
> How do I go about parsing integers from following form?
>
> (a:3, b:4) (b:4, c:2) (c:2, d9) ... and so on
>
> If I can I like to process two ints at a time for example 3 and 4 then move
> on to 4 and 2 and so on...
>
> TIA!
>
>
public void bushSucks(String s, Hashtable h) {
int index = s.indexOf(':');
String letter = "" + s.charAt(index-1);
int number = Integer.parseInt("" + s.charAt(index+1));
h.put(letter, number);
woot(s.substring(s.indexOf(')')) + 1, s.length(), h);
}
eh, somephin like that I guess. Not the best solution, but since I am
assuming you are a student. It would be best for you to find a better way.