Skip to content

Instantly share code, notes, and snippets.

@delucas
Created May 15, 2012 01:56
Show Gist options
  • Save delucas/2698498 to your computer and use it in GitHub Desktop.
Save delucas/2698498 to your computer and use it in GitHub Desktop.
UNLaM - Clase Contador, un ejemplo básico de Java
package ar.edu.unlam.tallerweb.eclipse;
public class Contador {
private int valorActual;
public void contar(){
this.valorActual++;
}
public void resetear(){
this.valorActual = 0;
}
public int mostrarValorActual(){
return this.valorActual;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment