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

Linear functions take the shape of a...
Each table represents a proportional relationship. For each, find the constant of proportionality, and write an equation that represents the relationship.
can anyone pls help me in this math question I'll give brainliest :( I give many points who answer​
write a letter to your mother telling your new friends ​
explain the concept of using proportions to solve problems.
find the value of X with full solutions​
3. Why can it be a good idea to use non-defensive responses in the face of unjustified attack?
Pls help me Explain why this graph is a function?
In any democracy, there is a fine line between liberty and authority. In your opinion, what is that fine line? How is it drawn? Is there a basis for the line
The revenue from selling x tickets is r(x) = 10x. The cost for buying x tickets is c(x) = 8x + 40. The profit from selling x tickets is p(x) = r(x) – c(x). Wh