Notes from Digging into Arrays

What is the best data structure to store data? I think it is Array. The reason why an array is fast is simple. It can go directly to the memory address. The main thing about an array is that data is saved side by side in memory. For example, if you make an int array, the computer takes one big empty space in memory all at once for the whole size....

Java Collections and Generics I Actually Use

When storing multiple items in Java, basic arrays have a lot of limits. Once you set the size of an array, you cannot change it, and you have to write your own code to add or remove items in the middle. That is why we use Collection. The size grows automatically, and features like adding, removing, sorting, and searching are already built in, so it is much easier to use....

Parts of this were translated using AI, so excuse any robot vibes.