forked from arhiansyah/Project1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbankberaksi.java
35 lines (27 loc) · 873 Bytes
/
bankberaksi.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* 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 bank;
/**
*
* @author rivandwiarhiansyah(18102068)
*/
public class BankBeraksi {
public static void main(String[] args) {
Bank bank; //inisialisasi object
bank = new Bank(100000); //,e,amggil onject demgam jumlah saldo yg sudah ditentukan
System.out.println("\n");
System.out.println("Sealamat datang di Bank ABC \n");
//print saldo
bank.getSaldo();
System.out.println();
//Save money/saldo
bank.simpanUang(500000);
System.out.println();
//withdraw money
bank.ambilUang(150000);
System.out.println();
}
}