(int v)
| 20 | } |
| 21 | |
| 22 | public boolean push(int v) { |
| 23 | if (size >= capacity) return false; |
| 24 | size++; |
| 25 | Node n = new Node(v); |
| 26 | if (size == 1) bottom = n; |
| 27 | join(n, top); |
| 28 | top = n; |
| 29 | return true; |
| 30 | } |
| 31 | |
| 32 | public int pop() { |
| 33 | Node t = top; |
no test coverage detected