Microsoft SDK for Java

nextElement

This method of the Queue Class removes an object from the head of the queue.

Syntax

public synchronized Object nextElement();

Return Value

Returns true if the object was successfully removed; otherwise, returns false.

Exceptions

NoSuchElementException if the queue is empty.

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