subject
Computers and Technology, 02.03.2021 03:20 mima851

Create a constructor with a single parameter which specifies the initial capacity of your array. Within the constructor, initialize all the three fields you just created. For initializing your stackArray field, refer to the next section on how to create generic arrays. Initialize your size field to 0 (Remember that your textbook represents size as topIndex and initializes it with -1. But in this lab instead of topIndex, use size and initialize it with 0). Initialize your capacity field with the parameter value.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print?
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
For the following example of making a peanut butter and jelly sandwich, identify which are inputs, processes, or outputs: bread scooping and spreading peanut butter plate scooping and spreading jelly finished sandwich putting two pieces of covered bread together dirty plate crumbs
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
You know the right answer?
Create a constructor with a single parameter which specifies the initial capacity of your array. Wit...
Questions
question
Mathematics, 16.10.2019 17:30
Questions on the website: 13722363