Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package questão6;
- public class Teste {
- public static void main(String[] args) {
- Pilha t = new Pilha();
- t.insere("falando");
- t.insere("com");
- t.insere("Deus");
- t.inverte();
- System.out.println(t.tamanho());
- t.RetornaEndereçoSeEstiverVazia();
- t.remove();
- t.remove();
- t.remove();
- t.RetornaEndereçoSeEstiverVazia();
- System.out.println(t.tamanho());
- }
Add Comment
Please, Sign In to add comment