Skip to content

Instantly share code, notes, and snippets.

@anta40
Created March 15, 2020 15:40
Show Gist options
  • Save anta40/dbf34ca95dbc5e9c778805f19565dbb1 to your computer and use it in GitHub Desktop.
Save anta40/dbf34ca95dbc5e9c778805f19565dbb1 to your computer and use it in GitHub Desktop.
class Togel {
private int no, banyak;
public Togel (int no, int banyak){
this.no = no;
this.banyak = banyak;
}
public int getNo(){ return no; }
public int getBanyak() { return banyak; }
public String toString(){
return "no: "+no+", banyak: "+banyak;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment