Recall the search method from the JCF classstack:
public int search(Object o)
// Returns the 1-based position where an object is on this
// stack. The topmost item on the stack is considered to be at
// distance 1.
a. Add this method to theStackListBased implementation given in diis chapter.
b. Add this method to theStackArrayBased implementation given in this chapter.
c. Add this mediod to thestackReferenceBased implementation given in diis chapter.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.