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

In which of the following ways does the Internet challenge the newspaper’s survival? A. The newspaper is not threatened by the Internet. B. The Internet edition
I ate 6 pieces of my candy. This is 75% of the candy I had. How much candy did I have before?
Which detail about Cashel Man shows that the bog preserved his body very well? Please help
Someone pleaseee help me on this...
Nancy and Lisa played 20 sets of tennis. Nancy won 12 of them. If they played 60 sets, how many would Lisa win?
what is p³×p simplify ​
who signed the declaration of independence​
Which could be a potential misuse of the genetic information obtained by sequencing the human genome? A- curing Inheritable diseases for certain individuals B
I’ll mark brainliest I’m so lost
HELLLOPPPPPPPPPPPPpppppppppppp