Implement Gas Station in Java?

I have to write a program to implement a gas station in java. The gas station has 5 pumps and each pump has a queue that the cars wait in if the pump is occupied. The cars arrive at random intervals and join an empty pump or the shortest queue. The program ask the user for the run time. I know how to write the... show more I have to write a program to implement a gas station in java. The gas station has 5 pumps and each pump has a queue that the cars wait in if the pump is occupied. The cars arrive at random intervals and join an empty pump or the shortest queue. The program ask the user for the run time. I know how to write the program but how do i create the cars in the programs loop and keep track of them?
1 answer