Skip to content
Snippets Groups Projects
Commit a6e67aef authored by Erkki Kaila's avatar Erkki Kaila
Browse files

Upload New File

parent 3b85961b
No related branches found
No related tags found
No related merge requests found
public class Laskin {
int tulos;
public Laskin() {
this.tulos = 0;
}
public int getTulos() {
return tulos;
}
public void lisaa(int luku) {
tulos += luku;
}
public void kerro(int luku) {
tulos *= luku;
}
public void vahenna(int luku) {
tulos += luku;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment