Question: Using Java, if I have to use a Set to create some seats for a Theater ( The Set contains a section, row and seat

Using Java, if I have to use a Set to create some seats for a Theater ( The Set contains a section, row and seat number),. I have two sections : "Front Level" with a capacity of 100 and "Back Level" with a capacity of 200. How can I initializate/create each seat in their respective section, row and seat number. Using a set. And then reserving available seats that are chosen by a client. (Thanks in advance)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!