(Stack<Integer> s)
| 14 | } |
| 15 | |
| 16 | public static void reverse(Stack<Integer> s) { |
| 17 | if(s.isEmpty()) { |
| 18 | return; |
| 19 | } |
| 20 | |
| 21 | int top = s.pop(); |
| 22 | reverse(s); |
| 23 | pushAtBottom(s, top); |
| 24 | } |
| 25 | |
| 26 | public static void main(String args[]) { |
| 27 | Stack<Integer> stack = new Stack<>(); |
nothing calls this directly
no test coverage detected