This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
public class ArvoreAvl { | |
protected No raiz; | |
public void inserir(int k) { | |
No n = new No(k); | |
inserirAVL(this.raiz, n); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArvoreBinaria { | |
public No raiz; | |
public No insere(int chave) { | |
return null; | |
} | |
public int busca(int chave) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArvoreBinaria { | |
public No raiz; | |
public No insere(int chave) { | |
return null; | |
} | |
public int busca(int chave) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ArvoreBinaria { | |
public No raiz; | |
public No insere(int chave) { | |
if (raiz == null) { | |
raiz = new No(); | |
raiz.chave = chave; | |
return raiz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ExcecaoJogoDaVelha extends RuntimeException { | |
public ExcecaoJogoDaVelha(String msg) { | |
super(msg); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.ufcg.ppgcc.compor.jcf.experimento.impl; | |
import java.util.List; | |
import br.ufcg.ppgcc.compor.jcf.experimento.fachada.Dependente; | |
import br.ufcg.ppgcc.compor.jcf.experimento.fachada.FachadaExperimento; | |
import br.ufcg.ppgcc.compor.jcf.experimento.fachada.FontePagadora; | |
import br.ufcg.ppgcc.compor.jcf.experimento.fachada.Resultado; | |
import br.ufcg.ppgcc.compor.jcf.experimento.fachada.Titular; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exemplo de uso do COMPOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jogodavelha; | |
public class Jogo { | |
private boolean marcaPrimeiroJogadorX; | |
public boolean acabou() { | |
return false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jogodavelha; | |
public class ExcecaoJogoDaVelha extends RuntimeException { | |
public ExcecaoJogoDaVelha(String msg) { | |
super(msg); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jogodavelha; | |
public class ExcecaoJogoDaVelha extends RuntimeException { | |
public ExcecaoJogoDaVelha(String msg) { | |
super(msg); | |
} | |
} |
OlderNewer