2012420081
nie tugas 3 lanjutan dari tugas2
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package penampilan;
/**
*
* @author analita
*/
public class tugas3 {
public String karyawan;
public String nama;
public String rambut;
public String baju;
public String celana;
public String sepatu;
public void print_karyawan(String karyawan){
System.out.println("tata tertib karyawan apotik");
}
public void print_nama(String nama){
System.out.println("nama="+"juned");
}
public void print_rambut(String rambut){
System.out.println("rambut="+"tidak boleh panjang");
}
public void print_baju(String baju){
System.out.println("baju="+"bersih n rapi");
}
public void print_celana(String celana){
System.out.println("celana="+"kain n warna hitam");
}
public void print_sepatu(String keja){
System.out.println("sepatu="+"hitam");
}public String getkaryawan(){
return karyawan;
}public String setkaryawan(){
return karyawan;
}
public String getnama(){
return nama;
}
public String setnama(){
return nama;
}
public String getrambut(){
return rambut;
}
public String setrambut(){
return rambut;
}
public String getbaju(){
return baju;
}
public String setbaju(){
return baju;
}
public String getcelana(){
return celana;
}
public String setcelana(){
return celana;
}
public String getsepatu(){
return sepatu;
}
public String setsepatu(){
return sepatu;
}
public static void main(String[] args) {
tugas3 a=new tugas3();
a.setkaryawan();
a.setnama();
a.setrambut();
a.setbaju();
a.setcelana();
a.setsepatu();
a.print_karyawan(a.getkaryawan());
a.print_nama(a.getnama());
a.print_rambut(a.getrambut());
a.print_baju(a.getbaju());
a.print_celana(a.getcelana());
a.print_sepatu(a.getsepatu());
}
}
Posted by 14.20 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar