Iterate through Queue of Objects in Order

后端 未结 3 2071
故里飘歌
故里飘歌 2021-01-04 06:14

I have created a queue containing objects which I would like to iterate through in the order that they were placed within the queue (First object placed in queue, 2nd object

3条回答
  •  不知归路
    2021-01-04 06:47

    I think its better to use ArrayList in this case. Please try that. Why you want to use queue only?

提交回复
热议问题