read « StringTokenizer « Java Data Type Q&A





2. Having problems reading expression with String tokenizer    java-forums.org

About the only way you can parse this is to read it one character at a time into a StringBuilder. For example if you had 24+78 you would read the 2 and store it. Then read the 4 and store it with the 2. Then read the +, now you know you have reached the end of the digit and you ...