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