271 total contributions
The .size() method returns the number of elements in the queue.
.size()
The .size() method is called on a queue using the following syntax:
queueName.size();
The codebyte example below uses the .size() method on the pizzas queue:
pizzas
usVisit uscodeHide codeCodeOutputHide outputHide outputLoading...Run
222 total contributions
73 total contributions