ilovefitbmx4696 ilovefitbmx4696
  • 21-08-2019
  • Computers and Technology
contestada

)In a vector implementation of a stack ADT, you add an entry to the top of a stack using which vector method?

A. Push

B.add

C.none of the other answers

Respuesta :

ExieFansler ExieFansler
  • 26-08-2019

Answer:

B.add.

Explanation:

boolean add(element)

The add method in java inserts an element in the vector.It's return type is Boolean it returns true if the element is successfully inserted in the vector and false if the operation is unsuccessful.There is no Push operation in vector.Hence we conclude that the answer is add.

Answer Link

Otras preguntas

write a C++ program to print name, age, class, school​
What was John Quincy adams role in the amistad case?
Hello people ~what's the value of acceleration due to gravity on earth?​
What decimal is equivalent to 85/99? 0.76 0.767676... 0.85 0.858585...
Asking this question again,help me please​
Let n be a positive integer. z^n is the set of all lists of length n whoseentries are in z. prove that z^n is countable. (hint: find a bijectionbetween z^(n−1)
What percent of the data lies at or below 37 pounds? Data: 36,22,41,18,36,27,31,38,25,29,22,34,48,20,12,19,35,32,41,50
How do you say good morning in spanish?
Please help Simplify:
Help me please!!! Can somebody help me