Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package user;
- /**
- *
- * @author Acer
- */
- public class ClassKaryawan {
- private String nip;
- private String nama;
- private String alamat;
- public ClassKaryawan(){
- this.nip="";
- this.nama = "";
- this.alamat = "";
- }
- public ClassKaryawan(String nip,String nama,String alamat){
- this.nip = nip;
- this.nama = nama;
- this.alamat = alamat;
- }
- public String getNidn() {
- return nip;
- }
- public void setNip(String nip) {
- this.nip = nip;
- }
- public String getNama() {
- return nama;
- }
- public void setNama(String nama) {
- this.nama = nama;
- }
- public String getAlamat() {
- return alamat;
- }
- public void setAlamat(String alamat) {
- this.alamat = alamat;
- }
- public void cetak2()
- {
- System.out.printf("Dosen Dengan nidn=%s,Nama=%s, Alamat=%s \n",this.nip,this.nama,this.alamat);
- }
- }
Add Comment
Please, Sign In to add comment