Understanding Comp139 Lecture 2

Exploring Comp139 Lecture 2 reveals several interesting facts. Write a class that handles a union membership list. Uses an array to hold the members. Write the add, remove, size and get ...

Key Takeaways about Comp139 Lecture 2

  • Converting specific list code to a list to hold any type of thing, then restricting it again with generics to only hold specific things (but ...
  • All about arrays.
  • Take the birthday game code/concept and make a "ChainedList" class to manage the chain. Use the same interface as our ...
  • Using arrays in Java. Difference between arrays of a native type and arrays of objects.
  • Writing a chained (linked) list class.

Detailed Analysis of Comp139 Lecture 2

Making a class to manage an array. More unit tests for remove(). Fix add method to grow the array if it runs out of room. Generalize MemberList to store any object. Fix a freeing bug in remove. Add toString. Make array expand if we run out of room.

MIT 21L.601J / 24.916J Old English and Beowulf, Spring 2023 Instructor: Prof. Arthur Bahr View the complete course: ...

Stay tuned for more updates related to Comp139 Lecture 2.

Comp139 Lecture 2.pdf

Size: 8.1 MB · Format: PDF · Secure Download

Download PDF Read Online

Related Documents