Search:

Type: Posts; User: KristopherP

Search: Search took 0.14 seconds.

  1. Replies
    7
    Views
    1,389

    Re: Need Help with StringTokenizer.

    Im trying to do this but I am a still having problems because I still have strings. I need the infix expression to be in a character array to pass to my methods and the numbers to be integers to...
  2. Replies
    7
    Views
    1,389

    Re: Need Help with StringTokenizer.

    Im not trying to parse it into an int. The code is wrong. I am asking what I need to do to read the first line which will be an expression.

    Then read the second line which are numbers and parse...
  3. Replies
    7
    Views
    1,389

    Re: Need Help with StringTokenizer.

    I understand this. I can not figure out how to go through the file.
    the way I wrote the while loop
    test = st.nextToken();

    grabs the next token which is A


    numbers =...
  4. Replies
    7
    Views
    1,389

    Need Help with StringTokenizer.

    I am having trouble with StringTokenizer. I have an input file that has an infix expressions followed by
    a set of numbers which are the values for the variables

    A + B * C
    1 3 5 2 2 2

    The...
Results 1 to 4 of 4