//stream = new Random(stream.nextLong()); // initialize rng stream
initialization();
cusArival = new double[totalCustomers+1];
cusService = new double[totalCustomers+1];
clockService = new double[totalCustomers+1];
cusInterArival = new double[totalCustomers+1];
cusWaiting = new double[totalCustomers+1];
cusIndex1 = 1;
cusArival[cusIndex1] = 0.0; //simulation will be started at time 0 and customer arrival, customer at service and customer in queue before time 0 will not be considered
System.out.println("Customer "+cusIndex1+": Interarrival Time="+df.format(cusInterArival[cusIndex1])+", Arrival Time="+df.format(cusArival[cusIndex1])+", Service Time="+df.format(cusService[cusIndex1])+", Waiting Time="+df.format(cusWaiting[cusIndex1]));
numberOfDepartures++;
}
if(i == totalCustomers && numberOfDepartures < totalCustomers && queueLength >= 1)// The last customer has arrived and all remaining customers are staying in the queue