Wednesday, February 16, 2011

Blog Replacement 01302011 :: Class Reflection

This is a replacement blog for 01302011 Class Reflection.

This week, we worked on Sort/Search. This takes an array and organizes it from least to greatest. If you want it to be the other way around, then you can just arrayName.reverse(). This is really useful because it makes the arrays really have a purpose. You could not take 4 different integers that aren't in an array and organize them by greatest to least. Arrays are really useful for this reason.

Search is also helpful, as you can find the location of a data point after you sort the array in any way you choose. Sort/search really makes arrays useful.

No comments:

Post a Comment