1. Which do you think would be a better choice to implement a stack: a singly linked list or an array? 2. If the user enters 10 in the triangle.java program (Listing 6.1), what is the maximum number...



1.
Which do you think would be a better choice to implement a stack: a singly


linked list or an array?



2.
If the user enters 10 in the triangle.java program (Listing 6.1), what is the


maximum number of “copies” of the triangle() method (actually just copies of


its argument) that exist at any one time?



2.
Where are the copies of the argument, mentioned in question 1, stored?



a.
in a variable in the triangle() method



b.
in a field of the TriangleApp class



c.
in a variable of the getString() method



d.
on a stack








Dec 10, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here