0

I want to implement an algorithm as add entry first and get from the last postion.capacity of the collection should not be increased than initial capacity. Instead, it should overwrite entry with old one in the first position. Is There any ready-made java Collection available to succeed?

Thanks

1 Answers1

-1

You can create your class using a Deque (for example, a ArrayDeque) and implement the required algorithms in it.

Ilya
  • 720
  • 6
  • 14