-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFDAccountMain.java
More file actions
31 lines (21 loc) · 842 Bytes
/
Copy pathFDAccountMain.java
File metadata and controls
31 lines (21 loc) · 842 Bytes
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
public class FDAccountMain {
public static void main(String[] args) {
// TODO Auto-generated method stub
FDAccount acc = new FDAccount();
System.out.println("Current Interest Rate: ");
acc.displayFD();
System.out.println("-----------------------------------------");
FDAccount acc1=new FDAccount(7.0f);
System.out.println("Parameterized Interest Rate:");
acc1.displayFD();
System.out.println("-----------------------------------------");
FDAccount.setinterestRate(7.5f);
System.out.println("Updated interest Rate:");
acc.displayFD();
System.out.println("-----------------------------------------");
System.out.println(acc);
System.out.println("-----------------------------------------");
System.out.println(acc1);
System.out.println("-----------------------------------------");
}
}