kyliepugh7732 kyliepugh7732
  • 21-01-2020
  • Computers and Technology
contestada

Assume v is a vector of integers that has been declared and initialized. Write a statement that adds the value 42 to the vector.

Respuesta :

flightbath flightbath
  • 22-01-2020

Answer:

v.add(42);

Explanation:

A vector is an inbuilt class in Java, which extends AbstractList class of Java. It is a kind of dynamically allocated arrays which does not need size at the time of declaration. It can expand as much as it can. AbstractList class implements the List interface of Java which has some generic functions like add(), sort(), etc.

Answer Link

Otras preguntas

He mixes 8 cups of water with glue if he wants to make a double batch how many quarts of water does he need how much water is that in gallons
What is the surface area of the box
Using coupons, you spend $120 grocery shopping. This is 80% of the total retail price of the groceries. How much would you spend if you had not used the coupons
R varies inversely as v2 if r=120 when v=1 ,find r when v=10
what is lateral inversion ​
“The Vietnam War was a turning point in the political and economic division in the United States.” Support, modify, or refute this statement.
what is the aribic value of MMCCCXLII​
What country from Europe is this
Pls help me with all of the questions I really wasn’t listen to the teacher when he was talking. I was on my phone
WILL MARK BRAINLIEST!!!! HELP ASAP!!!! 1. If the range for a set of data is 24, from 2 to 26, and the mean is 17, what can you conclude about the data? A. 17 is