Skip to content

Instantly share code, notes, and snippets.

@bangiqi
Created April 21, 2017 03:54
Show Gist options
  • Save bangiqi/48ed73da5c66d911d12580a0164fc24d to your computer and use it in GitHub Desktop.
Save bangiqi/48ed73da5c66d911d12580a0164fc24d to your computer and use it in GitHub Desktop.
package soalsalah.soal;
/**
* Created by ramdanix on 21/04/17.
*/
public class KumpulkanPW {
public static void main(String[] args){
LaporanPw laporanpw = new LaporanPw(
1311111,
"Aplikasi penjualan sepatu",
"VB.net",
"Rekayasa Perangkat Lunak",
2015,
"XI RPL 2"
);
System.out.println("=== LAPORAN PROJECT WORK ===");
System.out.println("nis : "+laporanPw.getNis());
System.out.println("judul : "+laporanPw.getJudulPw());
System.out.println("kategori : "+laporanPw.getKategoriPw());
System.out.println("jurusan : "+laporanPw.getJurusan());
System.out.println("tahun : "+laporanPw.getTahunPw();
System.out.println("kelas : "+laporanPw.getKelas());
}
}
package soalsalah.soal;
/**
* Created by ramdanix on 21/04/17.
*/
public class LaporanPw {
String nis;
String judulPw;
String kategoriPw;
String jurusan;
int tahunPw;
String kelas;
public Laporanpw(String nis, String judulPw, String kategoriPw, int tahunPw, String kelas) {
this.nis = Nis;
this.judulPw = judulpw;
this,kategoriPw = kategoriPw;
jurusan = this.jurusan;
this.tahunPw = tahunPw;
}
public int getNis() {
return nis;
}
public String getKategoriPw() {
return kategoriPw;
}
public int getTahunPw() {
return tahunPw;
}
public String getKelas() {
return kelas;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment