I have problems to differentiate when to use one or the other .. For example, in an agenda in which you add contacts and delete them I think it would be LinkedList.
I would like an answer to easily understand when to use one or the other. A link to a source that explains it well would also be worth it.
It is desired to organize an agenda with the data of the clients of a company (name that will be assumed that it contains the surnames and name in this order and telephone). As the company is very messy, all the business cards are in a card holder placed one on top of the other. You want to empty this card and put all the cards in a calendar so that all those whose last name starts with the same letter are together (for example, all those starting with A will be on the first page, all those starting with B in the second, etc.)
Establish what kind of data structure would be used to represent the necessary information: card, card holder, agenda and calendar pages.
Write a Java program that implements the structures described and perform the following operations:
Create the card holder: several unordered cards will be inserted in the card holder (make sure there are several cards with the same initial in the name so that they are saved in the same page)
Create the agenda: all the cards will be removed from the card holder and will be saved in the agenda on the corresponding page according to the initial of the name.
See the agenda: it will list all its pages, using the Iterable interface that Agenda and Page must implement
Sort each page of the calendar by name, using the interface ((Comparable)) that Card must implement. The ordered calendar must be shown again. **
In that exercise I wanted to use an arrayList for the cards on the page but I was advised that in this case I would use Linkedlist.