Java Deque iterator() MethodThe iterator() method of Java Deque Interface is used to return an iterator for the elements in the deque in a proper sequence. The elements are returned in a order from first(head) to last(tail). Specified by:
Syntax:Parameter:NA Return:The above method returns an iterator for the elements in the given deque in a proper sequence. Example 1Test it NowOutput: The series of month is given as : January February March April May June July August September October November December Example 2Test it NowOutput: The series of marks is given as : 34.0 25.0 66.0 39.0 Next TopicJava Deque |
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