Microsoft SDK for Java

size

This method of the Queue Class obtains the number of elements in the queue.

Syntax

public synchronized int size();

Return Value

Returns the size of the queue (in elements).

© 1999 Microsoft Corporation. All rights reserved. Terms of use.