Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

size of queue in java

//The Queue Interface offered in java does not offer a method returning its size.
//Fortunately, all the classes that implements this interface implements other interfaces that offer a method to return its size.
//This method is .size()
//Example:

int sizeOfTheQueue = queue.size();
 
PREVIOUS NEXT
Tagged: #size #queue #java
ADD COMMENT
Topic
Name
7+5 =