Thanks a lot,, its working now :-bd just needs some tweaking
really appreciate the help :o
Type: Posts; User: husain2213
Thanks a lot,, its working now :-bd just needs some tweaking
really appreciate the help :o
customerQueue is null: false
customerQueue.peek() is null: true
Exception in thread "main" java.lang.NullPointerException
at CustomerQueue.main(CustomerQueue.java:30)
is this happening because...
Exception in thread "main" java.lang.NullPointerException
at CustomerQueue.main(CustomerQueue.java:28)
that's the exact exception. it points to this line:
customerQueue.peek().minutePassed();
oops!
thanks for that. It compiles now but i get an exception when running it. could you take a look at the new code?
import java.util.Queue;
import java.util.LinkedList;
import...
Hi!
so i'm trying to make a program with a customer class that keeps how many minutes each customer needs to be served. The driver class CustomerQueue is a queue of all customers that haven't been...