Hey guys,
I'm trying to conver a while loop from C++ to java. And I'm having a problem with my while loop.
The original c++ code.
// Out of cashiers?
// Get next frontBusyCashierQ
// Is cashier's finish time now?
while(!service->emptyBusyCashierQ()
&& (service->frontBusyCashierQ(cashier),
cashier->getEndBusyTime() <= currentTime)) {
......
....
...
}
My fail attempt.
while(!service.emptyBusyCashierQ()
&& (service.frontBusyCashierQ(),
cashier.getEndBusyTime() <= currentTime))
{
....
..
.
}
The error is in line 3. Is the comma a problem inside the while loop?
Greatly appreciate any input in advance.