Java LinkedBlockingDeque iterator() methodThe iterator() method of LinkedBlockingDeque class returns an iterator across the elements of this deque in the appropriate order. The elements returned will be in the order from head to tail. Syntax:Parameters:NA Specified By:The iterator() method of LinkedBlockingDeque class is specified by:
Return Value:The iterator() method returns an iterator across the elements if this deque in the appropriate order. Example 1Test it NowOutput: 1.Ram 2.Sham 3.Mira 4.Rajesh Example 2Test it NowOutput: Characters : [A ,B ,C ,D ,E ,F ,G ,H ,I ,J ,K ,L ,M ,N ,O ,P ,Q ,R ,S ,T ,U ,V ,W ,X ,Y ,Z ,] Example 3Test it NowOutput: 71018 8000 1178 1190 Max number = 71018 Min number = 1178 Next TopicJava Linkedblockingdeque |
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