Please, help to write such a program in Java! Create an app to view the waiting list and changing the priority of the queue. List (5 records) is created in the program and is an object of the class LinkedList. The list entry is a QueuePerson object, containing the fields of the last name, first name and patronymic of the waiting person (of type String), field of type AddressValue for the queue address and queue priority (int type). In turn, a field of type AddressValue contains three String fields: city name, street name and house number, and a field of type int - apartment number (if apartment number is 0, house, in where the waiting list lives, has no apartments). Entries in queues are sorted according to priority, and the queue is added last in their queue priority.
Please, help to write such a
Create an app to view the waiting list and changing the priority of the queue. List (5 records) is created in the program and is an object of the class LinkedList. The list entry is a QueuePerson object, containing the fields of the last name, first name and patronymic of the waiting person
(of type String), field of type AddressValue for the queue address and queue priority (int type). In turn, a field of type AddressValue contains three String fields: city name, street name and house number, and a field of type int - apartment number (if apartment number is 0, house, in
where the waiting list lives, has no apartments). Entries in queues are sorted according to priority, and the queue is added last in their queue
priority.
Step by step
Solved in 3 steps with 1 images