Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using java in netbeans please post full answer with what the ending output please and thank you. Create a class called ManyStructures. It encapsulates an

Using java in netbeans please post full answer with what the ending output please and thank you.
Create a class called ManyStructures. It encapsulates an instance variable that is a long array. The length of the array should be dependent on an argument passed into a constructor. Include get and set methods so you can assign values to the elements of the array.
The ManyStructures class should also have the following methods.
getArray()-- which returns a copy of the instance variable array. Note that I said "copy"!
getQueue()-- which returns the data in the instance variable as a queue. The queue should have the functionality of the basic queue from your textbook.
getStack()-- which returns the data in the instance variable array as a stack. The stack should have the functionality of the basic stack from your textbook.
getLinkedList()-- which returns the data in the instance variable array as a linked list. The linked list should have the functionality of the basic linked list from your textbook. Note that in order to do this you will have to create something equivalent to the Link class from exercise 5A and embed the aray's long data within objects of that class.
Your project should contain any other classes you need to complete the test. Include a ManyStructuresDriver class that tests the ManyStructures class, its methods, and the data structures returned by the methods listed above..
NOTE: Just because it says "like the book" don't copy from the book, also don't use any java.util.* packages

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago