You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
501 B
18 lines
501 B
public class TestAccount{
|
|
public static void main(String[] args){
|
|
Account ac1 = new Account(100,500.00,0.03);
|
|
Account ac2 = new Account(200,1250.00,0.03);
|
|
Account ac3 = new Account(300,700.00,0.02);
|
|
ac1.computeInterest();
|
|
ac1.printAccountInfo();
|
|
System.out.println();
|
|
|
|
ac2.computeInterest();
|
|
ac2.printAccountInfo();
|
|
System.out.println();
|
|
|
|
ac3.computeInterest();
|
|
ac3.printAccountInfo();
|
|
System.out.println();
|
|
}
|
|
}
|