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