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

Which expressions are equivalent to (b^2)^1/9
Solve the inequality for w. 20 ≥ - 4w Simplify your answer as much as possible.
once again id love help ^^
once again id love help ^^
If 70 grams of sodium carbonate is used in the reactants. What VOLUME of CARBON DIOXIDE will be in the products.PLEASE HELP ​
A Walgreens purchase comes to $28. Find the total cost if a 2% sales tax is included.
Which is a property of ultraviolet C (UVC)? a. has the longest wavelength b. is the least reactive c. is the least absorbed by the stratosphere d. is the most
The product of 2 consecutive positive odd integers is 483. Write the equation that would be used to find x, the smaller integer.
Describe the role Canada played in the Korean War. state two supporting reasons.​
HELP ASAP! I HAVE 35 MINUTES UNTIL THE DEADLINE!!!