HELP how do i math with tokenizing

I have a code that can input an equation ie: 1+4*3; i want it to solve in order of the equation not operations, only the problem is i cant figure out how to store any variables from the tokenizer

heres my code

import java.io.*;

import java.util.StringTokenizer;

public class Calculator

{

public static void main(String args[]) throws IOException

{

InputStreamReader thing = new InputStreamReader(System.in);

BufferedReader input = new BufferedReader(thing);

System.out.println("Enter a equation: ");

String getValue = input.readLine();

String s = (getValue);

System.out.println("Your Equation " + s);

TokenizerTest.tokenize(s);

TokenizerTest.tokenize(s, ":");

TokenizerTest.tokenize(s, "+-*/");

TokenizerTest.tokenize(s, "+-*/", true);

TokenizerTest.tokenize(s);

}

{

}

static void tokenize(String s)

{

StringTokenizer st = new StringTokenizer(s);

while(st.hasMoreTokens())

{

System.out.println(st.nextToken());

}

}

static void tokenize(String s, String delim)

{

StringTokenizer st = new StringTokenizer(s, delim);

while(st.hasMoreTokens())

{

System.out.println(st.nextToken());

}

}

static void tokenize(String s, String delim, boolean flag)

{

StringTokenizer st = new StringTokenizer(s, delim, flag);

while(st.hasMoreTokens())

{

System.out.println(st.nextToken());

}

}

}

[1558 byte] By [ekimffora] at [2007-10-2 14:03:01]
# 1
1. Use code tags next time2. You don't want to store variables from the tokenizer, you want to store values (hint: but you'll be using variables to do so)
DaanSa at 2007-7-13 12:11:11 > top of Java-index,Other Topics,Algorithms...
# 2
Continued here: http://forum.java.sun.com/thread.jspa?threadID=714629
prometheuzza at 2007-7-13 12:11:11 > top of Java-index,Other Topics,Algorithms...