1 minute read

After the APCS A (Java) Examination, there are often 3-5 weeks left in the semester (especially for non-seniors) — depending on when the examination is scheduled and snow days.

The Java Collections Framework is a ‘…unified architecture for representing and manipulating collections’ that goes beyond primitive arrays. It can form the introductory basis of a second-semester college data structures course. As such, it is a valuable introduction to what computing majors will see in their first year of post-secondary education.

Assignment

The assignments are to use minimal versions of the Collection and List interfaces to:

  • implement a minimal version of LinkedList and extend it to implement minimal versions of Queue and Stack.;
  • implement Set using an underlying List, then implement HashSet using an array as a hash table, then implement TreeSet as a binary search tree. (Sets also form the basis of various associative array data structures.)

These assignments allow exploration of implementation tradeoffs, an understanding of when each data structure is appropriate for use, and real experience coding methods that users might otherwise take for granted.

Follow the specifications in the Java Collections Framework document and complete the four Codecheck.it assignments, submitting the downloaded .ZIP files.

Notes

As preparation for the assignment…

#Java