A Guide To Advanced Java - Introduction to Threads

United Bank is an esteemed bank that provides various banking services. Its services include receiving deposits of money, lending money and processing transactions. The management of United Bank is looking at automation as a means to save time and effort required in their work. In order to achieve this, the management has planned to computerize the process of transferring money from one account to another while maintaining the same total value. | A Guide To Advanced Java Assignments Introduction to Threads Sr. No. Assignment Question 1 United Bank is an esteemed bank that provides various banking services. Its services include receiving deposits of money lending money and processing transactions. The management of United Bank is looking at automation as a means to save time and effort required in their work. In order to achieve this the management has planned to computerize the process of transferring money from one account to another while maintaining the same total value. The United Bank Manager and a team of experts have chosen your company to provide a solution for the same. Consider yourself to be a part of the team that implements the solution for designing the application. Create an application using Threads to implement the application. The application should consist of the following classes 1. 2. 3. Each file has a specific purpose and functionality. The descriptions of each file are as follows The CustomerAccount class is used to store the information such as account type and balance amount for the customer account. The CustomerAccount class contains instance variables accountType and balance to store the account type and the balance amount respectively. Create a getter method named getAccountType to retrieve the account type of the customer. Similarly create another getter method named getBalance to retrieve the balance amount of the customer. Further create a setter method named setBalance to set the balance amount of the customer. The TransferManager class demonstrates the use of Runnable interface to transfer money from one account to another while maintaining the same total value over the two accounts. The TransferManager class contains instance variable transferCount to store the count for the number of transfer instances that will take place. The run method is implemented in this class .

Bấm vào đây để xem trước nội dung
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.