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 ar.edu.untref.lp1.terreno; | |
public class Casa { | |
private boolean[][] plano; | |
private int orientacion; | |
public Casa(boolean[][] plano, int orientacion) { | |
this.plano = plano; |
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 ar.edu.unlam.tallerweb.eclipse; | |
public class Rango { | |
private int minimo; | |
private int maximo; | |
public Rango(int minimo, int maximo){ | |
this.minimo = minimo; | |
this.maximo = maximo; |
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 ar.edu.untref.lp1.plomeria.grupoN; | |
import ar.edu.untref.lp1.plomeria.Material; | |
import ar.edu.untref.lp1.plomeria.Plomero; | |
/** | |
* Ejemplo de implemetación de la interfaz Plomero. | |
*/ | |
public class MarioBros implements Plomero { |
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 ar.edu.untref; | |
public class CasaYTerreno { // 1 = obstaculo. 0 = libre | |
private int[][] matrizCasa = { { 0,0,0,0 }, | |
{ 0,0,0,0 }, | |
{ 0,1,1,0 }, | |
{ 1,1,1,1 } }; | |
private boolean casaDentroDeTerreno = 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 ar.edu.unlam.tallerweb.eclipse; | |
public class Contador { | |
private int valorActual; | |
public void contar(){ | |
this.valorActual++; | |
} | |
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 ar.edu.unlam.tallerweb.tdd; | |
public class EcuacionLineal { | |
private int m; | |
private int b; | |
public EcuacionLineal(int m) { | |
this.m = m; |
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 ArregloOrdenable { | |
public static final int COSTO_ELEMENTO = 5; | |
public static final int COSTO_INTERCAMBIO = 10; | |
public static final int COSTO_LARGO = 15; | |
private int[] arreglo; | |
private int peticionesElemento; | |
private int peticionesIntercambio; |
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 BuscadorBinario { | |
public int buscadorBinarioSimple (ArregloOrdenable arreglo, int buscado){ | |
int posicionDelValorBuscado = 0; | |
int posicionMenor = 0; | |
int posicionMayor = arreglo.getLargo()-1; | |
int promedio = calcularPromedio(posicionMenor, posicionMayor); | |
boolean encontrado = 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
class ExceptionTestsJUnit3 extends GroovyTestCase { | |
void testDebeArrojarArithmeticExcepcion() { | |
shouldFail(ArithmeticException) { | |
1 / 0 | |
} | |
} | |
} |
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 ar.edu.unlam.tallerweb.billetera; | |
public class BilleteException extends Exception { | |
private static final long serialVersionUID = 8656459465486574L; | |
public BilleteException(String message){ | |
super(message); | |
} | |
} |
OlderNewer