
A Guide To Advanced Java - Generics
Số trang: 2
Loại file: pdf
Dung lượng: 16.12 KB
Lượt xem: 26
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Over the past 50 years, Lifeline Hospital has proved its multifaceted response and services towards the patient satisfaction and quality. Now, the hospital management has initiated processmanagement strategies to get improved quality, costeffectiveness and on-line tracking and booking of doctors and specialists. To achieve this goal, management has decided to use a process-management approach to coordinate all the doctors in the panel, around the organization, towards "patient-centered care." Consider you to be a part of the team that implements the solution for designing the application. ...
Nội dung trích xuất từ tài liệu:
A Guide To Advanced Java - Generics A Guide To Advanced Java Assignments Generics Sr. No. Assignment Question 1 Over the past 50 years, Lifeline Hospital has proved its multi- faceted response and services towards the patient satisfaction and quality. Now, the hospital management has initiated process- management strategies to get improved quality, cost- effectiveness and on-line tracking and booking of doctors and specialists. To achieve this goal, management has decided to use a process-management approach to coordinate all the doctors in the panel, around the organization, towards patient-centered care. Consider you to be a part of the team that implements the solution for designing the application. Create an application in Java, which can be used to register new doctors with all details, maintain the existing doctors, tracking a specific doctor, and displaying all the doctors present in a panel along with all the details. The application internally creates a generic HashMap, known as DoctorHashMap that can store any generic key-value pair. When in the main class, an instance of the generic DoctorHashMap is created, the key is mapped to a String and the value is mapped to an object of another class that stores all the details of doctors. The application is tested in another class which initially displays a menu with the following options. 1. Register Doctor 2. Search and display the Doctor details 3. Publish the entire list 4. Exit W hen the user selects an option the corresponding function must be invoked. The application terminates by printing an appropriate message and showing the corresponding result, when the user chooses to exit the application. W hen a user enters the first choice to “Register Doctor”, the application invokes the add() method with the key-value pairs, which in turn invokes the put() method of HashMap and starts accepting all the details of the doctors as the key-value pairs to the DoctorHashMap. The key represents the doctor code of type String. The values represent the details of the doctor it accepts such as doctor code, doctor name, specialization, and availability in terms of hours. The second option searches for a doctor based on the doctor code as entered by the user. The application checks only if there© 2007 Aptech Ltd Version 1.0 Page 1 of 2A Guide To Advanced Java Assignments is any key in the HashMap that matches with the doctor code entered by the user. If the application finds a match, then it retrieves all the corresponding details of the doctor existing in the DoctorHashMap else it prints a failure message. The third option displays the entire list of doctor code with their details, as entered by the user. It also prints the total number of doctors present in the panel. Finally, on selecting the fourth option, the application exits safely.© 2007 Aptech Ltd Version 1.0 Page 2 of 2
Nội dung trích xuất từ tài liệu:
A Guide To Advanced Java - Generics A Guide To Advanced Java Assignments Generics Sr. No. Assignment Question 1 Over the past 50 years, Lifeline Hospital has proved its multi- faceted response and services towards the patient satisfaction and quality. Now, the hospital management has initiated process- management strategies to get improved quality, cost- effectiveness and on-line tracking and booking of doctors and specialists. To achieve this goal, management has decided to use a process-management approach to coordinate all the doctors in the panel, around the organization, towards patient-centered care. Consider you to be a part of the team that implements the solution for designing the application. Create an application in Java, which can be used to register new doctors with all details, maintain the existing doctors, tracking a specific doctor, and displaying all the doctors present in a panel along with all the details. The application internally creates a generic HashMap, known as DoctorHashMap that can store any generic key-value pair. When in the main class, an instance of the generic DoctorHashMap is created, the key is mapped to a String and the value is mapped to an object of another class that stores all the details of doctors. The application is tested in another class which initially displays a menu with the following options. 1. Register Doctor 2. Search and display the Doctor details 3. Publish the entire list 4. Exit W hen the user selects an option the corresponding function must be invoked. The application terminates by printing an appropriate message and showing the corresponding result, when the user chooses to exit the application. W hen a user enters the first choice to “Register Doctor”, the application invokes the add() method with the key-value pairs, which in turn invokes the put() method of HashMap and starts accepting all the details of the doctors as the key-value pairs to the DoctorHashMap. The key represents the doctor code of type String. The values represent the details of the doctor it accepts such as doctor code, doctor name, specialization, and availability in terms of hours. The second option searches for a doctor based on the doctor code as entered by the user. The application checks only if there© 2007 Aptech Ltd Version 1.0 Page 1 of 2A Guide To Advanced Java Assignments is any key in the HashMap that matches with the doctor code entered by the user. If the application finds a match, then it retrieves all the corresponding details of the doctor existing in the DoctorHashMap else it prints a failure message. The third option displays the entire list of doctor code with their details, as entered by the user. It also prints the total number of doctors present in the panel. Finally, on selecting the fourth option, the application exits safely.© 2007 Aptech Ltd Version 1.0 Page 2 of 2
Tìm kiếm theo từ khóa liên quan:
tài liệu java ứng dụng java lý thuyết java ngôn ngữ java lập trình với javaTài liệu có liên quan:
-
Bài toán phân luồng giao thông và ứng dụng
11 trang 186 1 0 -
7 trang 56 0 0
-
Giáo trình Lý thuyết và bài tập Java: Phần 1
420 trang 41 1 0 -
153 trang 39 0 0
-
Tạo động các tài liệu PDF từ ứng dụng Java
11 trang 37 0 0 -
Chương 1: Giới thiệu tổng quan Java
31 trang 36 0 0 -
A Guide To Advanced Java - Collections
1 trang 36 0 0 -
Bài giảng Lập trình Java căn bản: Chương 2 - ThS. Võ Đức Cẩm Hải
24 trang 33 0 0 -
Lập trình Java cơ bản- Bài 1 (Overview)
34 trang 30 0 0 -
Bài thuyết trình Cơ bản về Java
29 trang 29 0 0 -
42 trang 29 0 0
-
Chương 2: Cơ bản về ngôn ngữ Java
59 trang 28 0 0 -
Giáo trình Lập trình Java cơ bản: Phần 1
82 trang 28 0 0 -
Giáo trình java cơ bản - Chương 5
45 trang 28 0 0 -
Bài giảng: Giới thiệu về Package
35 trang 27 0 0 -
Giáo trình java cơ bản - Chương 9
22 trang 27 0 0 -
Giáo trình java cơ bản - Chương 10
12 trang 27 0 0 -
Bài tập java về nhập liệu từ bàn phím
12 trang 27 0 0 -
Distributed Computing in Java - Swing components and Dialog Box
1 trang 27 0 0 -
Giáo trình Java cơ bản (Java SE Basic)
150 trang 26 0 0