For example, here is one current implementation in memory
String companies[] = {"Alice Berned","Beyonce Cathy","Kelly Boldt"};
The requirement is to extend this directory dynamically at runtime. The records could be as many as thousands. The data structure should facilitate basic functionalities such as search, add, delete.
My solution:
My first thought is to use ArrayList, easy to get and add.
Question: Are there any good way to approach the problem?