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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here