equivalent to push() or pop() for arrays?

前端 未结 5 1399
傲寒
傲寒 2020-12-13 11:54

I am trying to add, remove and reference items from an array I create in my main java file, but I am having trouble figuring out the correct syntax. In actionscript they ha

5条回答
  •  一向
    一向 (楼主)
    2020-12-13 12:20

    You can use LinkedList. It has methods peek, poll and offer.

提交回复
热议问题