Data Structures
Demonstrate defining, loading, printing and storing a Multidimensional ArrayList.Just as the elements of an array can be defined to be arrays themselves (thus makingmultidimensional arrays), so can an ArrayList be defined to contain elements that arethemselves an ArrayList (thus making multidimensional ArrayLists).1. Define a multidimensional ArrayList named seats to hold the status (available,taken) of seats in a theatre.a. There are three dimensionsi. The seating levels (main floor, 1st balcony, 2nd balcony).ii. The rows on a given level.iii. The seats in a given row.iv. Define seats as an ArrayList of levels where each level is an ArrayListof rows and each row is an ArrayList of seats (thus the 3 dimensions).b. Since the status can only be two values, the data type is Boolean.2. Initialize the ArrayList so that all seats are taken except the first seat of each row.a. True = seat is taken; false = seat is available3. Display the ArrayList by seating level on screen.4. Store the ArrayList by seating level to a file using PrintStream (recall from section for more information on Data Structures check on this:https://en.wikipedia.org/wiki/Data_structure
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics