Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public String imprimeExpressao(){
- if (this.getFilhoEsquerdo() == null && this.getFilhoDireito() == null){
- return this.getValor();
- } else {
- return "(" + this.getFilhoEsquerdo().imprimeExpressao() + this.getValor() + this.getFilhoDireito().imprimeExpressao() + ")";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement