Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    18
    Views
    1,045

    Re: help fix this code

    Glad you found it.
  2. Replies
    18
    Views
    1,045

    Re: help fix this code

    Sort of true. It will not execute the else. But it will execute what comes after the else.
    Look at your code. What is in the else statement? Is that related to your problem?

    --- Update ---
    ...
  3. Replies
    18
    Views
    1,045

    Re: help fix this code

    Did you understand my NOTE? I made it because of a problem in the code you are asking about.

    The {}s in the TokenStore2 class need to be fixed. Many of them are not in the proper column to show...
  4. Replies
    18
    Views
    1,045

    Re: help with this code

    Is this the same problem: http://www.javaprogrammingforums.com/whats-wrong-my-code/38247-help-fix-code.html

    Threads merged.

    NOTE: With an if statement, if the if condition is true, the else...
  5. Replies
    18
    Views
    1,045

    Re: help fix this code

    There are several ways all involving loops:
    1) get the number of lines from the user and loop that number of times
    2) have a "sentinel" value that the user enters to tell the program that there is...
  6. Replies
    18
    Views
    1,045

    Re: help fix this code

    Add a method to the TokenStore class that stores the tokens in the array. Call that method with the token to be stored from the TokenDriver class.
  7. Replies
    18
    Views
    1,045

    Re: help fix this code

    Which part are you having problems with?
    ask for multiple lines of strings
    {I assume the code will read those strings}
    turn them into tokens
    {What happens to the tokens? Saved or printed...
  8. Replies
    18
    Views
    1,045

    Re: help fix this code

    Use: System.out.println(THESTRINGHERE);

    What is wrong with what the code does now? It is using the above mentioned method to print tokens.

    Can you explain what the program is supposed to do?
Results 1 to 8 of 8