| Share this post! | Vote this! |
|
ArrayList(s) and Static Array(s). They have a lot in common. They both
store data, they can both be traversed in loops...However, the ArrayList
is MUCH more appealing in my opinion, since it can be dynamically
re-sized, that is, re-sized during execution of a program, which is very
nice. On the flip side, a static array has size limitations to how much
space you declared them to have.
Let's get to the code, shall we?
Static Arrays
The static array. A nice little structure that holds data in a neat fashion. We can traverse through the data in a loop. It seems like a perfect thing...WRONG. more...
Let's get to the code, shall we?
Static Arrays
The static array. A nice little structure that holds data in a neat fashion. We can traverse through the data in a loop. It seems like a perfect thing...WRONG. more...




0 comments:
Post a Comment