Java Collections (LIFO Structure)

前端 未结 6 1458
栀梦
栀梦 2020-12-05 06:55

I am looking in the Collections framework of Java for a LIFO Structure (Stack) without any success. Basically I want a really simple stack; my perfect option would be a Dequ

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 07:18

    Stack class is slowly: methods are synchronized + Stack extends synchronized Vector

提交回复
热议问题