Ad
  • Custom User Avatar

    Because this implementation needs FIFO behavior. Though, kotlin lists have first() and last() methods that may provide same behavior original Java lists didn't. Moreover, some would say that push() and pop() is semantisemantically clearer.