Java LinkedTransferQueue iterator() methodThe iterator() method of LinkedTransferQueue class is used to return an iterator over the elements in this queue in proper sequence. Syntax:Specified By:The iterator() method of LinkedTransferQueue class is specified by :
Return:This method returns an iterator over the elements in this queue in proper sequence Example 1Test it NowOutput: 1.Jackson 2.Harry 3.John 4.Honey Example 2Test it NowOutput: 1.1.Roll No. = 15cs1029 College = AKTU University Name = Harry 2.2.Roll No. = 15cs1010 College = CCS University Name = Johnson 3.3.Roll No. = 17cs1029 College = MR University Name = Marry 4.4.Roll No. = 15cs1011 College = MVN University Name = Jack Example 3Test it NowOutput: 71018 8000 1178 1190 Max number = 71018 Min number = 1178 Next TopicJava LinkedTransferQueue |
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