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.

17 lines
501 B

7 years ago
  1. public class TestAccount{
  2. public static void main(String[] args){
  3. Account ac1 = new Account(100,500.00,0.03);
  4. Account ac2 = new Account(200,1250.00,0.03);
  5. Account ac3 = new Account(300,700.00,0.02);
  6. ac1.computeInterest();
  7. ac1.printAccountInfo();
  8. System.out.println();
  9. ac2.computeInterest();
  10. ac2.printAccountInfo();
  11. System.out.println();
  12. ac3.computeInterest();
  13. ac3.printAccountInfo();
  14. System.out.println();
  15. }
  16. }