Use stringtokenizer to break up the token using " " as the delimiter. Once you have done that, use Integer.parseInt to convert each of the strings to int and then add them. Easy.
you can have it in a try catch block or check to make sure that the string is indeed a valid number. [ October 22, 2004: Message edited by: rahul V kumar ]