1
2
3
4
5
6
7
8
9
10
11
12
13
14public
15interface StackInterface {
16
17 public
18 boolean isEmpty();
19
20 public
21 Object top();
22
23 public
24 void push(Object o);
25
26 public
27 void pop();
28
29
30
31
32
33
34
35
36
37 public
38 boolean prePop();
39
40 public
41 boolean preTop();
42}
43
44