Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Tabuada {
- private Integer numero;
- public Integer getNumero() {
- return numero;
- }
- public void setNumero(Integer numero) {
- this.numero = numero;
- }
- public void executar(){
- Integer valor;
- for (int i = 1; i <= 10; i++) {
- valor = this.getNumero()*i;
- System.out.println(this.getNumero() + " * " + i + " = " + valor);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement