Wednesday, February 2, 2011

Reflection 01232011

This week we are working with Array Lists. An arraylist is just an array with the capacity to add or remove array spaces. Unlike plain old arrays, you do not have to initiate the array while defining a size. With an array, you have a set grid of numbers which are then called by whatever you are doing. In ArrayLists, you can make the code add more numbers and spaces in the ArrayList, as well as take them away. These Array Lists are useful because say you had a growing database of information, and didn't want to create a directory too small to contain all of the information you would have in the future. Creating a method using an Array List will enable the program to make new information storing places, as well as remove old information that you have no need for any more.

No comments:

Post a Comment