Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws Exception {
- Pilha<Integer> a = new Pilha<Integer>(4);
- a.empilhar(10);
- a.empilhar(42);
- a.empilhar(95);
- a.empilhar(78);
- Pilha<Integer> b = new Pilha<Integer>(4);
- while (!a.pilhaVazia()) {
- b.empilhar(a.desempilhar());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement