Lab4.2 - Wednesday
Lab4.2 - Wednesday
Programming Language 2
Computer Science Department
2023
Lab Objectives:
In this lab, a student will practice
1. Create an Array of type CheckingAccount of size 2, and use this information in the following table:
B. ArrayList:
3. Add the objects created to the ArrayList by using the appropriate ArrayList method.
4. Print all the list elements by using one line code.
5. Use the appropriate ArrayList method to print the Interest Rate of Owner Ahmad.
Assignment:
Write a Java program that demonstrate Array and ArrayList. DO NOT use the examples from
the lecture.
In your program, design and implement 3 classes ( one superclass and two subclasses ) in the
same package with all needed instance variables, accessor and mutators methods and
constructors; then write a test application to demonstrate the classes capabilities.