nama : muhamad risqi
nim : 2012420100
public class voli_cons {
public String serven=("melakukan serven");
public String blok=("blok");
public String umpan=("umpan");
public String pukul=("pukul");
public String toser=("toser"), pasing=("pasing"), smaser=("smaser");
public void voli1(String serven, String blok, String umpan, String pukul){
this.setServen(serven);
this.setBlok(blok);
this.setUmpan(umpan);
this.setPukul(pukul);
}
public void voli1(String toser, String pasing, String smaser){
this.setToser(toser);
this.setPasing(pasing);
this.setSmaser(smaser);
}
public String getServen() {
return serven;
}
public void setServen(String serven) {
this.serven = serven;
}
public String getBlok() {
return blok;
}
public void setBlok(String blok) {
this.blok = blok;
}
public String getUmpan() {
return umpan;
}
public void setUmpan(String umpan) {
this.umpan = umpan;
}
public String getPukul() {
return pukul;
}
public void setPukul(String pukul) {
this.pukul = pukul;
}
public String getToser() {
return toser;
}
public void setToser(String toser) {
this.toser = toser;
}
public String getPasing() {
return pasing;
}
public void setPasing(String pasing) {
this.pasing = pasing;
}
public String getSmaser() {
return smaser;
}
public void setSmaser(String smaser) {
this.smaser = smaser;
}
}
public static void main(String[] args) {
voli_cons a=new voli_cons();
System.out.println(a.getToser()+" sedang melakukan "+a.getBlok()+" dan "+a.getServen());
System.out.println("");
}
}
Posted by 01.05 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar