Thursday, October 18, 2012

Lab 6

Today, I had the sixth CS1121 lab, not including the lab quiz. It was dealing with ArrayLists, which are so much easier than Arrays. They're both essentially lists of stuff (could be any primitive type), but the amount of elements in an Array is set in stone once you create one. With ArrayLists, you can add elements and take elements out with no hassle at all, which is wonderful. WH and I pretty much did four of the five problems this week in ten minutes or less. Problem number three was where we ran into issues. We had to mush two ArrayLists together, keeping them in ascending order while eliminating duplicates. Once we figured it out, Trick Master showed us that there was a function within Java that sorts any list you throw at it. Awesome.
Anyway, still victorious!

No comments:

Post a Comment