Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Node {
- private int info;
- private Node esquerda;
- private Node direita;
- public Node(int info) {
- this.info = info;
- this.esquerda = null;
- this.direita = null;
- }
- public void setEsquerda(Node esquerda) {
- this.esquerda = esquerda;
- }
- public void setDireita(Node direita) {
- this.direita = direita;
- }
- public int getInfo() {
- return info;
- }
- public Node getEsquerda() {
- return esquerda;
- }
- public Node getDireita() {
- return direita;
- }
- public void setInfo(int info) {
- this.info = info;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment