PRO_gramer

teste da 6

Jul 4th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. package questão6;
  2.  
  3. public class Teste {
  4.  
  5.     public static void main(String[] args) {
  6.         Pilha t = new Pilha();
  7.         t.insere("falando");
  8.         t.insere("com");
  9.         t.insere("Deus");
  10.          t.inverte();
  11.          System.out.println(t.tamanho());
  12.          t.RetornaEndereçoSeEstiverVazia();
  13.          t.remove();
  14.          t.remove();
  15.          t.remove();
  16.          t.RetornaEndereçoSeEstiverVazia();
  17.          System.out.println(t.tamanho());
  18.          
  19.  
  20.     }
Add Comment
Please, Sign In to add comment