Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public static void main(String[] args) throws Exception {
  2. Pilha a = new Pilha(4);
  3. a.empilhar(23);
  4. a.empilhar(52);
  5. a.empilhar(38);
  6. a.empilhar(91);
  7.  
  8. Pilha b = new Pilha(4);
  9. while (!a.pilhaVazia()) {
  10. b.empilhar(a.desempilhar());
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement