Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    Please explain what the problem is. As long as each object has a unique id, there shouldn't be a problem.

    For debugging add a println statement in the Customer class's constructor that prints out...
  2. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    You need to do some debugging to show what the code is doing.
    Add lots of printlns to print out the values of the variables used it the code.
    For example:
    Print out the value of c inside the for...
  3. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    Where? I don't see it in the post.
  4. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    Can you explain when the responses are valid
    and when they are invalid?
    What is different from when the response is valid
    and when it is invalid?

    Please copy the contents of the console from...
  5. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    why is this statement used?

    if (trans != null) {

    Where does the method create an instance of the Transaction class that it is supposed to return?
  6. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    What is the problem you are trying to solve in "this situation"?
    Does the findCustomer() method solve that problem for you?
  7. Replies
    13
    Views
    2,200

    [SOLVED] Re: A Loop statement and a switch statement issue

    Is there a need to create the newC object? Can the code use a local variable to hold the data read from the Scanner object?

    The method is supposed to return a Transaction object. It should ask...
Results 1 to 7 of 7