2012420081
public class karyawan {
private static class juned {
{
}
}
private String nama;
private String rambut;
private String baju;
private String celana;
private String sepatu;
public karyawan(){
}
public void infokaryawan(){
System.out.println("nama karyawan="+nama);
System.out.println("rambut="+rambut);
System.out.println("baju="+baju);
System.out.println("celana="+celana);
System.out.println("sepatu="+sepatu);
System.out.println("");
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println();
karyawan x=new karyawan();
x.nama="juned";
x.rambut="tidak boleh panjang";
x.baju="rapi n tidak kusam";
x.celana="celana kainn warna hitam";
x.sepatu="hitam";
x.infokaryawan();
}
}
Posted by 13.48 and have
0
komentar
, Published at
Tidak ada komentar:
Posting Komentar