Java ArrayBlockingQueue iterator() MethodThe iterator() method of ArrayBlockingQueue class returns an iterator across the elements of this queue in a sequential manner. The elements returned will follow order from first (head) to last (tail). Syntax:Parameters:NA Specified By:The iterator() method of ArrayBlockingQueue class is specified by:
Return Value:The iterator() method returns an iterator across the elements of this queue in a sequential manner. Example 1Output: Reema Rahul Rita Ramesh Example 2Output: Reema Panda [email protected] Geetanjali Sharma [email protected] Vineet Tanjea [email protected] Himanshu Bhardwaj [email protected] Example 3Output: 71018 8000 1178 1190 Max number = 71018 Min number = 1178 Next TopicJava-arrayblockingqueue-offer-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India