Search:

Type: Posts; User: curmudgeon

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,122

    [SOLVED] Re: Please Help (Queues)

    You're quite welcome! Glad you've got it working.
  2. Replies
    9
    Views
    1,122

    [SOLVED] Re: Please Help (Queues)

    Yep, that's what the Queue API states:


    You could call peek and check that it's not null before proceeding:


    Customer cust = customerQueue.peek();
    if (cust != null) {
    // do check the...
  3. Replies
    9
    Views
    1,122

    [SOLVED] Re: Please Help (Queues)

    So what is null? consider changing this:


    customerQueue.peek().minutePassed();

    to this:


    // add before checking the minutes passed:
    System.out.println("customerQueue is null: " +...
  4. Replies
    9
    Views
    1,122

    [SOLVED] Re: Please Help (Queues)

    You should *always* also post the full text of the exception and indicate by an obvious comment on the code which line(s) throw the exception. Please do this as this will greatly help us to figure...
Results 1 to 4 of 4