The microlabs for the Generics chapter are all grouped together. So, you need to work through them package by package. The following list is the package name followed by a quick description of the assignment.
- StackArrayList -- Implement
Stack<E>
to use an ArrayList as a stack. You need to make thepush
,pop
, andisEmpty
functions. - StackArray -- Implement
Stack<E>
to use an array as a stack. You'll need to potentially grow the array in thepush
method. Do this first with anE[]
array, and then again with anObject[]
array. Both should compile without warnings and pass the tests.