Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bank {
- private Nasabah[] nasabah = new Nasabah[32];
- private int jumlahNasabah;
- public Bank() {
- jumlahNasabah=0;
- }
- public int getJumlahNasabah() {
- return jumlahNasabah;
- }
- public void tambahNasabah(String namaAwal, String namaAkhir){
- nasabah[jumlahNasabah++] = new Nasabah(namaAwal, namaAkhir);
- }
- public Nasabah getNasabah(int index) {
- return nasabah[index];
- }
- }
Add Comment
Please, Sign In to add comment