aeds2/fonte/U5 - Estruturas de dados li.../java/matriz/Celula.java

21 lines
435 B
Java

class Celula {
private int elemento;
private Celula inf, sup, esq, dir;
public Celula(){
this(0, null, null, null, null);
}
public Celula(int elemento){
this(elemento, null, null, null, null);
}
public Celula(int elemento, Celula inf, Celula sup, Celula esq, Celula dir){
this.elemento = elemento;
this.inf = inf;
this.sup = sup;
this.esq = esq;
this.dir = dir;
}
}