Recent content by SarahLep

  1. S

    Implementing Many Stacks in the Same Program

    The mistake was that I wrote: public Stack (int capcity) { this.capacity = capacity; }. Instead, I should have written: public Stack (int capacity) { this.capacity = capacity; }. Now the code works.
  2. S

    Implementing Many Stacks in the Same Program

    I am trying to make a program that implements a new stack every time the capacity of the previous stack is exceeded. Therefore, implementing many stacks in the same program. Here is the code: package StackOfPlate; import java.util.ArrayList; import java.util.Stack; public class StackOfPlates3...
Top