So I have to take a step back. I can't use a Priority Queue for my customers. My professor said not to. I'll just use a LinkedList Queue for the customer line.
Do I still need the comparable and...
Type: Posts; User: BuhRock
So I have to take a step back. I can't use a Priority Queue for my customers. My professor said not to. I'll just use a LinkedList Queue for the customer line.
Do I still need the comparable and...
I guess what I'm confused on, is how to instantiate the registers. The constructor of my store class creates ten registers. So in my temporary tester class, do I even need to do this:
Register reg...
Yes, I suppose it works, it printed out the double that the customer has when its created.. I made a class and added a customer to a register. I just need help on how to add customers to different...
Would this work?
double totalTime = 0;
for(Customer cust: line ){
totalTime +=cust.getServiceTime();
}
So I have to implement a checkout line using a priority queue. I'm really stuck. I have 3 classes, a Register class, Store class, and customer class.
Each customer has a service time which is the...